What's new

Skrypty & Kody ?atwy skrypt do przerobienia

Status
Not open for further replies.

Gizmoo

Advanced User
Joined
Jan 9, 2011
Messages
243
Reaction score
2
witam .
Mam skrypt kt?ry dzia?a w drug? stron? ot?? puszcza ludzi tylko do 120 lvl po osi?gni?ciu danego lvl teleportuje w dane miejsce a ma robi? odwrotnie tzn wpuszcza? na kratk? od tego 120 ... oto skrypt :
[LUA] function onStepIn(cid, item, position, fromPosition)
tileback = {x=451, y=481, z=6, stackpos=255}

if (getPlayerLevel(cid) > 120) then
doTeleportThing(cid, tileback)
doSendMagicEffect(tileback,10)
doPlayerSendTextMessage(cid,22,"Premy Bylo tylko DO 120 LEVELA.")
else
end
[/LUA]
 

Oskar1415

Advanced User
Joined
Feb 25, 2009
Messages
381
Reaction score
22
Odp: ?atwy skrypt do przerobienia

function onStepIn(cid, item, position, fromPosition)
tileback = {x=451, y=481, z=6, stackpos=255}

if (getPlayerLevel(cid) < 120) then
doTeleportThing(cid, tileback)
doSendMagicEffect(tileback,10)
doPlayerSendTextMessage(cid,22,"Premy Bylo tylko DO 120 LEVELA.")
else
end
Pozdrawiam
 

Gizmoo

Advanced User
Joined
Jan 9, 2011
Messages
243
Reaction score
2
Odp: ?atwy skrypt do przerobienia

[LUA][10/03/2016 21:48:45] Warning: [Event::loadScript] Can not load script. data/movements/scripts/funkcje/sqm100.lua
[10/03/2016 21:48:45] data/movements/scripts/funkcje/sqm100.lua:9: 'end' expected (to close 'function' at line 1) near '<eof>'[/LUA]

Dobra dzia?a zabrak?o 1 end na ko?cu + leci
 

Logit3ch

Advanced User
Joined
Oct 2, 2013
Messages
165
Reaction score
6
Odp: ?atwy skrypt do przerobienia

Najlepiej, zamie? else na end, po co ma tak samotnie istnie? bez u?ytku w kodzie : >
 
Status
Not open for further replies.
Top