gr33nd3v1l
You see a Green Devil.
I made 11 scripts that can't be simpler then they are. Simple remove wall scripts with uid. The point of the script is this: You push a lever, remove a distant wall/rock/metal bars so that you may get to another lever. That lever removes the small wall right next to the first lever. Now you can get to the third lever and remove the distant wall yadda yadda mostly all over again. The point is you have to run all around a large area and face poi monsters as they respawn (I tried to make a simpler POI then real Tibia because i never done it and i don't know the details of the quest).
I get no errors in my console, i can push the lever, but the text doesn't show up, and it doesn't remove the rocks it's supposed to.
My question is: could it maybe place 2 more rocks in the same place? Have i done the script the wrong way ? And if someone could add a storage value and a check to this script so a person may pull the first lever only once.
Thanks in advance.
This is only the first script. I don't see the point of posting all 11 of them when not even the first one works.
I tried adding storage values but it had so many errors, simply had no nerves after making all the other scripts =\
I get no errors in my console, i can push the lever, but the text doesn't show up, and it doesn't remove the rocks it's supposed to.
My question is: could it maybe place 2 more rocks in the same place? Have i done the script the wrong way ? And if someone could add a storage value and a check to this script so a person may pull the first lever only once.
Thanks in advance.
This is only the first script. I don't see the point of posting all 11 of them when not even the first one works.
Code:
function onUse(cid, item, frompos, item2, topos)
wall1 = {x=694, y=698, z=10, stackpos=1}
wall2 = {x=694, y=699, z=10, stackpos=1}
getwall1 = getThingfromPos(wall1)
getwall2 = getThingfromPos(wall2)
if item.uid == 7677 and item.itemid == 1945 then
doRemoveItem(getwall1.uid,1)
doRemoveItem(getwall2.uid,1)
doTransformItem(item.uid,item.itemid+1)
doPlayerSendTextMessage(cid,18,"Something heavy was moved.")
elseif item.uid == 7677 and item.itemid == 1946 then
doCreateItem(1304,1,wall1)
doCreateItem(1304,1,wall2)
doTransformItem(item.uid,item.itemid-1)
doPlayerSendTextMessage(cid,18,"Something heavy was moved.")
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
I tried adding storage values but it had so many errors, simply had no nerves after making all the other scripts =\