- Dołączył
- Grudzień 26, 2009
- Posty
- 80
- Liczba reakcji
- 3
Prosze o pomoc. mam silnik 8.60 gdy wklejam skrypty np.teleport,czary
nic mi nie dzia?a... nie wyskakuje b??d w silniku po prostu nie ma efekt?w ani tego co ma robi? skrypt. Podam skrypt i powiedzcie mi co jest w nich nie tak! : /
Prosze o bardzo szybk? pomoc!
nic mi nie dzia?a... nie wyskakuje b??d w silniku po prostu nie ma efekt?w ani tego co ma robi? skrypt. Podam skrypt i powiedzcie mi co jest w nich nie tak! : /
w talkactions doda?em :local destinations = {
["Temple"] = {pos = {x = 1000, y = 1000, z = 7}, cost = 1000000}
}
local maxlevel = 50
function onSay(cid, words, param, channel)
local tp = destinations[param]
if(param == "") then
return doPlayerSendCancel(cid, "Komenda Wycofana"
end
if(getPlayerMoney(cid) < tp.cost) then
return doPlayerSendCancel(cid, "Nie masz pieni?dzy!.")
elseif(isPlayerPzLocked(cid) == true) then
return doPlayerSendCancel(cid, "Ty masz teraz pz.")
elseif(getCreatureCondition(cid, CONDITION_INFIGHT)) then
return doPlayerSendCancel(cid, "Ty masz teraz Pz.")
elseif(getPlayerLevel(cid) <= maxlevel) then
return doPlayerSendCancel(cid, "You dont have level.")
else
doPlayerRemoveMoney(cid, tp.cost)
doTeleportThing(cid, tp.pos)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Brawo!Przenios?e? si? do temple!".. param ..".")
end
return true
end
Od razu m?wie ?e jestem zielonym skrypterem i ?e skrypty nie s? moje.<talkaction words="!teleport" event="script" value="TELEPORT.lua"/>
Prosze o bardzo szybk? pomoc!
