What's new

Przywolywanie Train Monk

Status
Not open for further replies.

faqe

User
Joined
Sep 21, 2008
Messages
13
Reaction score
0
Poszukuje Skryptu gdzie player b?dzie mog? przywo?ac do siebie train monki 2max w dowolnym miejscu poza (pz) :lol:
Np . !trainmonk
I za ka?dego przywo?anego pobieral 100gp od playerao_O
Mam silnik 8.54
The Forgotten Server
Dzieki za Pomoc ;)
 

Vvex

Banned
Joined
Jun 28, 2009
Messages
460
Reaction score
91
Odp: Przywolywanie Train Monk

local nazwyPotworow = {"Training Monk"}
local exh = 5 -- Ile sekund exhaused
local storage = 1414
function onSay(cid, words, param, channel)
if doPlayerRemoveMoney(cid, 100) == true and (getPlayerStorageValue(cid,storage) <= os.time()) == true then
local monster = nazwyPotworow[math.random(1,#nazwyPotworow)]
local summon = doSummonCreature(monster,getPlayerPosition(cid))
doChallengeCreature(cid, summon)
doChallengeCreature(summon, cid)
setPlayerStorageValue(cid,storage,os.time()+exh)
else
doPlayerSendCancel(cid, "Sorry, You dont have money or you are exhaused.")
end
return TRUE
end

end

Powinno dzia?a?.
Pozdro
 

faqe

User
Joined
Sep 21, 2008
Messages
13
Reaction score
0
Odp: Przywolywanie Train Monk

A m?g?by? napisa? co pokolei robi? :0 Bylbym bardzo wdzieczny ;))
 

faqe

User
Joined
Sep 21, 2008
Messages
13
Reaction score
0
Odp: Przywolywanie Train Monk

Od?wie?am !! Prosze o pomoc
 

Vvex

Banned
Joined
Jun 28, 2009
Messages
460
Reaction score
91
Odp: Przywolywanie Train Monk

No proste, w Data/Talkactions/Scripts/CO? TAM.lua i ten skrypt co ci da?em.
Nast?pnie Data/Talkactions/talkactions.xml i dodajesz:
<talkaction words="!trainmonk" event="script" value="CO? TAM.lua"/>

W miejscu CO? TAM wpisujesz, np trainer.
Pozdrawiam
 

faqe

User
Joined
Sep 21, 2008
Messages
13
Reaction score
0
Odp: Przywolywanie Train Monk

I tu sie k?ania problem.
Wpisuje !trainmonk w tibi i nic sie nie dzieje :pP
 
Status
Not open for further replies.
Top