What's new

auto clean co 25 minut, NPC, itemy - jak zrobi?

Status
Not open for further replies.

Casey

Active User
Joined
Mar 12, 2010
Messages
58
Reaction score
0
cze?? mam trzy problemy;/
1. nie wiem ajk zrobi? item kt?ry daje na sekunde np. 25hp many i 25hp ;/
oraz jak zrobi? item kt?y absorbuje 10% ene atak?w ale jesli mamy ca?y set kt?ry sk?ada si? z (id 1111, 2222,3333)
2. jak zrobic auto clean co 25 minut ? ?
3. NPC Nauczyciel!
ptrzebuje npc kt?ry uczy czar?w za darmo sprawdza tylko czy jest dla tej profesji oraz czy ma spe?nione wymagania
 

Casey

Active User
Joined
Mar 12, 2010
Messages
58
Reaction score
0
Odp: Trzy problemy;/

Odp: Trzy problemy;/

help :)
 
Last edited:

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: auto clean co 25 minut, NPC, itemy - jak zrobi?


A jak nie dziala to:

 

Casey

Active User
Joined
Mar 12, 2010
Messages
58
Reaction score
0
Odp: auto clean co 25 minut, NPC, itemy - jak zrobi?

spoko za???my ?e uzyje tego
PHP:
if (msgcontains(msg, 'ognista paczka') then -- by Night Wolf :d
        doPlayerLearnInstantSpell(cid, "Fire Wave") -- uczy czaru o nazwie Fire Wave (taka sama nazwa jak w spells.xml
        selfSay('Prosze bardzo.', cid)
    end
end

jak moge ustawi? aby tego czaru m?g? si? uczy? np. tylko voc o id 56
 

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: auto clean co 25 minut, NPC, itemy - jak zrobi?

PHP:
if (msgcontains(msg, 'ognista paczka') then
         if getPlayerVocation(cid) == 56 then

doPlayerLearnInstantSpell(cid, "Fire Wave")
selfSay('Prosze bardzo.', cid)
       else
        selfSay('tylko super rycerz mo?e poj?? tajniki ognistej paczki!', cid)
         end
    end
end
 

Casey

Active User
Joined
Mar 12, 2010
Messages
58
Reaction score
0
Odp: auto clean co 25 minut, NPC, itemy - jak zrobi?

Thx, potrzebuje nadal reszty !
oraz
npc kt?ry przenosi do 100, 100, 8 je?li gracz nie am frag?w natomiast je?li ma jakie? fragi to do 200, 200, 7
 

Sokou

Advanced User
Joined
Jun 25, 2010
Messages
379
Reaction score
25
Odp: auto clean co 25 minut, NPC, itemy - jak zrobi?

ehh w globalevents.xml dodaj:

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<globalevents>
    <globalevent name="clean" interval="7200" script="clean.lua"/>
</globalevents>

nast?pnie stw?rz plik clean.lua i dodaj do niego to:

PHP:
function executeClean()
    doCleanMap()
    doBroadcastMessage("Czyszczenie mapy ukonczone, Nastepne czyszczenie za 2 godz.")
    return TRUE
end
function onThink(interval, lastExecution)
    doBroadcastMessage("Czyszczenie mapy odbedzie sie za 30 sekund, Pochowajcie itemy z podloza.!")
    addEvent(executeClean, 30000)
    return TRUE
end
:)
 

Casey

Active User
Joined
Mar 12, 2010
Messages
58
Reaction score
0
Odp: auto clean co 25 minut, NPC, itemy - jak zrobi?

thanks zioom!
 
Status
Not open for further replies.
Top