- Dołączył
- Luty 2, 2015
- Posty
- 132
- Liczba reakcji
- 2
Ma ktos moze komende na teleport pod questa, ze np za 500g teleportuje w dane miejsce?? tfs 0.3.6
Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
a i jeszcze jedno jak ktos ma pz to nie moze tp dacKur*a nie dziala ;( moze byc ze przez komende reload talkaction nie lapie??
albo daj talkaction do tego
data/talkactions/scripts/tpdp.lua:7: attempt to call global 'getPlayerItem' (a nil value)
stack traceback:
data/talkactions/scripts/tpdp.lua:7: in function <data/talkactions/scripts/tpdp.lua:1>
?ap bardziej rozbudowane jakby? chcia?. ;>
[lua]local config = {pos = {x = 30057, y = 30080, z = 7}, cost = 50000, timetotp = 7, exhaust = 60} -- pozycja, koszt(1 = 1gp, 50000 = 5cc), czas w sekundach po jakim grasz dostanie tp, czas do ponownego u?ycia scrolla.
local function doSendEffect(cid, c)
doSendAnimatedText(getCreaturePosition(cid), config.timetotp-c, math.random(200))
end
function onSay(cid, words, param)
if isPremium(cid) then
if getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE then
if exhaustion.get(cid,61266) == false then
if doPlayerRemoveMoney(cid, config.cost) == TRUE then
exhaustion.set(cid, 61266, config.exhaust)
addEvent(doTeleportThing, config.timetotp * 1000, cid, config.pos)
for c = 0, config.timetotp do
addEvent(doSendEffect, c * 1000, cid, c)
end
doPlayerSendTextMessage(cid, 22, "Uzyles teleport, zaraz zostaniesz przeteleportowany!")
else
doPlayerSendCancel(cid,"Musisz posiadac ".. config.cost.. " gold coins.")
end
else
doPlayerSendCancel(cid,"Musisz odczekac chwile")
end
else
doPlayerSendCancel(cid,"Nie mozesz toczyc walki!")
end
else
doPlayerSendCancel(cid,"Musisz posiadac konto premium.")
end
return true
end[/lua]
W takim razie prosz? sprawdzi? jak dzia?a doPlayerRemoveMoney z funkcj? warunkow? je?eli.