• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

PoI Back entrance (necromant house)

Amped RPG

New Member
Joined
Aug 24, 2012
Messages
163
Reaction score
3
Looking for PoI movement script for the back entrance tp. I would like it to only require one storage value from the thrones, but have it check all 7 throne storage values. (So you can get back in no matter which throne you did first)

My poi throne values are 10274 through 10280

Was hoping somebody had the script handy or could write it for me, if I have to do it myself it will take a long time since i'm a complete newb for LUA functions and whatnot...


Thanks,
AmpedRPG
 
I'm not much of a scripter, if somebody has the scripts for this I'd love them. If not it's on my to do list and coming up real fast... in that case I will spend time learning how lua works I guess.

Thankyou!
~Lauxes

- - - Updated - - -

I'll post my script when it's not working and I need pointers =)

- - - Updated - - -

Scripted it myself through trials and tribulations!

Back door to poi script - checks if you have done atleast 1/7 thrones to give access.
LUA:
  -- PoI back door

function onUse(cid, item, fromPosition, itemEx, toPosition)
        if item.uid == 5790 then
                if getPlayerStorageValue(cid, 10274) == 1 then
                        doPlayerSendTextMessage(cid, 22, "You may pass.")
                        doTransformItem(item.uid, item.itemid + 1)
                        doTeleportThing(cid, toPosition, 1)
                else
                        doPlayerSendTextMessage(cid, 22, "No!!")
                end
        elseif item.uid == 5790 then   
                if getPlayerStorageValue(cid, 10275) == 1 then
                        doPlayerSendTextMessage(cid, 22, "You may pass.")
                        doTransformItem(item.uid, item.itemid + 1)
                        doTeleportThing(cid, toPosition, 1)
                else
                            doPlayerSendTextMessage(cid, 22, "No!!")
                end
        elseif item.uid == 5790 then                        
                if getPlayerStorageValue(cid, 10276) == 1 then
                        doPlayerSendTextMessage(cid, 22, "You may pass.")
                        doTransformItem(item.uid, item.itemid + 1)
                        doTeleportThing(cid, toPosition, 1)
                else
                        doPlayerSendTextMessage(cid, 22, "No!!")
                end
        elseif item.uid == 5790 then                        
                if getPlayerStorageValue(cid, 10277) == 1 then
                        doPlayerSendTextMessage(cid, 22, "You may pass.")
                        doTransformItem(item.uid, item.itemid + 1)
                        doTeleportThing(cid, toPosition, 1)
                else
                        doPlayerSendTextMessage(cid, 22, "No!!")
                end
        elseif item.uid == 5790 then                
                if getPlayerStorageValue(cid, 10278) == 1 then
                        doPlayerSendTextMessage(cid, 22, "You may pass.")
                        doTransformItem(item.uid, item.itemid + 1)
                        doTeleportThing(cid, toPosition, 1)
                else
                        doPlayerSendTextMessage(cid, 22, "No!!")
                end
        elseif item.uid == 5790 then                
                if getPlayerStorageValue(cid, 10279) == 1 then
                        doPlayerSendTextMessage(cid, 22, "You may pass.")
                        doTransformItem(item.uid, item.itemid + 1)
                        doTeleportThing(cid, toPosition, 1)
                else     
                        doPlayerSendTextMessage(cid, 22, "No!!")
                end
        elseif item.uid == 5790 then                        
                if getPlayerStorageValue(cid, 10280) == 1 then
                        doPlayerSendTextMessage(cid, 22, "You may pass.")
                        doTransformItem(item.uid, item.itemid + 1)
                        doTeleportThing(cid, toPosition, 1)
                else           
                        doPlayerSendTextMessage(cid, 22, "No!!")
                end
        end
end

If anyone can show me how to string the values together if possible because they are 10274-10280.. Thanks

~Justin
 
Back
Top