What's new

Skrypty & Kody Actions Doors LvL Teleports

Status
Not open for further replies.

Arigato

New User
Joined
Apr 13, 2015
Messages
5
Reaction score
0
Witam prosz? o pomoc w przerobieniu ten kawa?ek kody:sad:

[LUA] if(item.actionid == 190 or (item.actionid ~= 0 and getPlayerLevel(cid) >= (item.actionid - getItemLevelDoor(item.itemid)))) then
doorEnter(cid, item, toPosition)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.")
end

return true
end
[/LUA]
?eby nie otwiera? drzwi lecz teleportowa? przez nie w strony takie jak "lewa g?ra d?? prawa"
:hah:
 

Logit3ch

Advanced User
Joined
Oct 2, 2013
Messages
165
Reaction score
6
Odp: Actions Doors LvL Teleports

Code:
function onUse(cid, item, fromPos, itemEx, toPos)
doTeleportThing(cid, {x = xxx, y = yyy, z = zzz})
end[code]

Pisane z pamieci i nie testowane...

Jezeli chcesz jakies dostepy od lvl czy cos, to przed linijka do teleport thing dodajesz : if getPlayerLevel(cid) mniejsze/rowne/rozne/wieksze LVL then

I pod doTeleportThing kolejny end.
 

Arigato

New User
Joined
Apr 13, 2015
Messages
5
Reaction score
0
Odp: Actions Doors LvL Teleports

Code:
function onUse(cid, item, fromPos, itemEx, toPos)
doTeleportThing(cid, {x = xxx, y = yyy, z = zzz})
end[code]

Pisane z pamieci i nie testowane...

Jezeli chcesz jakies dostepy od lvl czy cos, to przed linijka do teleport thing dodajesz : if getPlayerLevel(cid) mniejsze/rowne/rozne/wieksze LVL then

I pod doTeleportThing kolejny end.[/QUOTE]

Dzia?a? dzia?a lecz? chodzi?o mi o to ze by teleportowa? przez nie w strony takie jak "lewa,g?ra,d??,prawa" jak jest na wono,vesti

[COLOR="gray"][SIZE=1]---------- Tre?? dodana o 15:27 ----------[/SIZE][/COLOR]

Poradzi?em sobie  sam z swoim problemem 

dodaj?c taki kawa?ek kodu
[LUA]local pos, door = getThingPos(cid), toPosition
	if isInArray({door.x-1, door.x+1}, pos.x) and pos.y == door.y then[/LUA]:wow2::wow2::wow2::wow2::wow2::wow2::wow2::wow2:
 
Status
Not open for further replies.
Top