Ezzam
New Member
- Joined
- Jan 16, 2008
- Messages
- 213
- Reaction score
- 2
This script is free to use. (If you release my script edited, dont forget to leave rep to me)
You put 4 items on coal basin/other table, then you pull the lever.
You get a storage id, and can then open the door. (quest door with action id same as storage id.
The script was made when i was in school, and that's why i can't test it. I'll fix the script better when i get home from school and after i upload some ss of my modified evolution map.
Don't critisice me for using evo, i am working on fixing all spawns/places over the whole map, changing loot from quest's and rebuild the whole town. I will also add some quest suck as POI/INQ etc.
I'm sorry for the tabbing space, i usually use notepad 2, but the school only have notepad++ (wich makes tabbing bigger)
You put 4 items on coal basin/other table, then you pull the lever.
You get a storage id, and can then open the door. (quest door with action id same as storage id.
The script was made when i was in school, and that's why i can't test it. I'll fix the script better when i get home from school and after i upload some ss of my modified evolution map.
Don't critisice me for using evo, i am working on fixing all spawns/places over the whole map, changing loot from quest's and rebuild the whole town. I will also add some quest suck as POI/INQ etc.
Code:
--[ Script made by Ezzam ]
[B]--[ Script released for www.OtLand.net ][/B]
local config = {
level = ***,
storageid = *****,
itemid1 = ****,
itemid2 = ****,
itemid3 = ****,
itemid4 = ****,
i1 = {x=***, y=***, z=**, stackpos=2}, --[ Where is item 1? (stackpos 2 if you put the item on a coalbason/other table, 1 if you put it on the ground)]
i2 = {x=***, y=***, z=**, stackpos=2}, --[ Where is item 2? ]
i3 = {x=***, y=***, z=**, stackpos=2}, --[ Where is item 3? ]
i4 = {x=***, y=***, z=**, stackpos=2}, --[ Where is item 4? ]
--[ DON'T TOUTCH THE REST ]--
item1 = getThingFromPos(i1),
item2 = getThingFromPos(i2),
item3 = getThingFromPos(i3),
item4 = getThingFromPos(i4)
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) > config.level then
if config.item1.uid == itemid1 then
if config.item2.uid == itemid2 then
if config.item3.uid == itemid3 then
if config.item4.uid == itemid4 then
if doRemoveItem(config.item1.uid) and doRemoveItem(config.item2.uid) and doRemoveItem(config.item3.uid) and doRemoveItem(config.item4.uid) == TRUE then
if setPlayerStorageValue(cid, config.storageid, 1) == TRUE then
sendPlayerTextMessage(cid, TALKTYPE_ORANGE, "You can now continue your jurney.")
else
sendPlayerTextMessage(cid, TALKTYPE_ORANGE, "Error, please contact an administrator (error code #2).")
end
else
sendPlayerTextMessage(cid, TALKTYPE_ORANGE, "Error, please contact an administrator (error code #1).")
end
else
sendPlayerTextMessage(cid, TALKTYPE_ORANGE, "Put the " .. getItemName(config.itemid1) .. " on the right place.")
end
else
sendPlayerTextMessage(cid, TALKTYPE_ORANGE, "Put the " .. getItemName(config.itemid2) .. " on the right place.")
end
else
sendPlayerTextMessage(cid, TALKTYPE_ORANGE, "Put the " .. getItemName(config.itemid3) .. " on the right place.")
end
else
sendPlayerTextMessage(cid, TALKTYPE_ORANGE, "Put the " .. getItemName(config.itemid4) .. " on the right place.")
end
else
sendPlayerTextMessage(cid, TALKTYPE_ORANGE, "You can't make this quest yet, you need level " .. config.level .. ", you are only level " .. getPlayerLevel(cid) .. ".")
end
return TRUE
end
I'm sorry for the tabbing space, i usually use notepad 2, but the school only have notepad++ (wich makes tabbing bigger)
Last edited: