What's new

-Skrypt [8.6] 7 action id w jednej bramce

Status
Not open for further replies.

Twojkaprys

Active User
Joined
Oct 9, 2010
Messages
101
Reaction score
11
By?bym wdzi?czny za skrypta dzi?ki kt?remu bramk? questow? b?dzie mo?na zabezpieczy? na 7 action id.
Mo?e podam przyk?ad:
po uko?czeniu 7 quest?w idziemy do bramki i mo?emy przez ni? przej?? je?eli uko?czyli?my te 7 quest?w.
Z g?ry wielkie dzi?ki!
 

DanJ93

ElfBot Helper
Joined
Jan 18, 2009
Messages
2,631
Reaction score
200
Odp: [8.6] 7 action id w jednej bramce

ustaw jakie? jedno id,
potem wpisz je te? w data/actions/actions.xml,
potem wejd? w data/actions/skrypts/xx/
i zr?b plik multidoor i wklej do niego:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == XXX then
if(isInArray({getPlayerStorageValue(cid, X) and getPlayerStorageValue(cid, X) and getPlayerStorageValue(cid, X), getPlayerStorageValue(cid, X) and getPlayerStorageValue(cid, X), getPlayerStorageValue(cid, X) and getPlayerStorageValue(cid, X)}, 1) == TRUE) then
doPlayerSendTextMessage(cid, 22, "The door seems to be sealed against unwanted intruders.")
else
doPlayerSendTextMessage(cid, 22, "You've absorbed enough energy! You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, TRUE)
end
return TRUE
end
return FALSE
end
XXX - actionid drzwi
X - id quest?w
 
Status
Not open for further replies.
Top