• 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!

Simple request

psychosisneamia

~Beginner~
Joined
Jun 7, 2012
Messages
162
Reaction score
7
I got a simple request that I can not figure out.. Everyone I see says to just set action ID to the key and I don't know how to do that.

My problem:

I am making a quest door where you need to use the key (8978) but I don't know how to set an action ID to it is there a script someone can give me? Thank you!
 
There are multiple ways to set an action id to an item.
If the key is placed in your world-map, simply RightClick on it->Properties and put value to the item:
ttNXaDo.png

On the other hand, if your item is given to a player by Lua script (quest or npc) then use this part of code:
Code:
local key = doPlayerAddItem(cid, <<key id>>)
doSetItemActionId(key, 8978)

#Edit
aww I forgot. You need to set the same action id to your locked doors.

Hope it helps =)
 
Back
Top