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

Door access NPC

poopsiedoodle

Gibe moni plos
Joined
Nov 23, 2011
Messages
2,458
Reaction score
586
Location
Georgia
So, as part of my beginner island for my OT that I'm working on, I want to do a quest (of course). And in the quest, I want to make you have to have a conversation with a certain NPC before you can go past a certain door to get to the boss for the quest. How would I do this?
 
So, as part of my beginner island for my OT that I'm working on, I want to do a quest (of course). And in the quest, I want to make you have to have a conversation with a certain NPC before you can go past a certain door to get to the boss for the quest. How would I do this?

It's all about storage value. When you talk to the NPC you will get a certain storage value. Without the storage value you wont be able to open the door. There should be a script similar to this around here somewhere.
 
I think that's is easy, afaik :p try this, only add this line over the NPC lua script line that you want to set the storage:
Code:
setPlayerStorageValue(cid,12001,1)

And in MAP EDITOR, if you have the 8.6 system (not shure) doors, put the action id of the door as same as storage value in this case 12001.

Good Luck.
 
Back
Top