Old Old School Server
Welcome 2 Old School
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  GalleriesGalleries   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[7.6][c++] Niekonczace sie bolty - wersja z config.lua

 
Post new topic   Reply to topic    Old School Server Forum Index -> Skrypty
View previous topic :: View next topic  
Author Message
RHTM
Hoster
<font color=blue>Hoster</font>



Joined: 14 Feb 2007
Posts: 1341
Read: 0 topics

Warns: 0/5
Location: Wrocław

PostPosted: Sat 14:59, 07 Apr 2007    Post subject: [7.6][c++] Niekonczace sie bolty - wersja z config.lua

w game.cpp znalesc trzeba

Code:
if(damagetype != FIGHT_MELEE && player) {
player->removeDistItem();
}


i zamienic na

Code:
if(damagetype != FIGHT_MELEE && player && g_config.getGlobalString("bolts") == "yes") {
player->removeDistItem();
}


w config.lua dodac

Code:
--bolty maja sie konczyc? (yes/no)
bolts = "no"


Kod by Palladineq


The post has been approved 0 times
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Old School Server Forum Index -> Skrypty All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2002 phpBB Group
Regulamin