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

[TalkAction]OnSay Password To Access or NPC Password System

Fyruz

★★★★★
Joined
Feb 7, 2009
Messages
556
Reaction score
19
Location
127.0.0.1
Hello, well I am trying to figure out how to make a script, but I prefer that someone can help me to avoid any future bugs, and I dont know if is possible.
IDEA 1: Doors.(My favorite)
Well this script is based to protect hacks in-game, what I want is that a Locked Door have Unique Id 18999 and only people infront of can execute this following commands:
If you want to put the password when your new: /accessdp newpass, ej.8192
When you have already your password and you want to access the door: /accessdp 8192 > Then your able to pass through the door.
This script can avoid future hacks, and make a confortable playing.

IDEA 2: NPC(I prefer idea 1:P)
This script is the same proposition as the idea 1 but we can make it via NPC, Example:
Player: Hi
NPC: Hi please provide if you dont have a password say new password if you want to access your private depot say access.
Player: new password
NPC: Ok please provide me your new password:
Player: 8192
NPC: Are you sure?
Player: Yes
NPC Ok, your password is 8192.
Player: access
NPC: Please provide me your password
Player: 8192
NPC: Welcome Master! If you want to put your items in the locked area just say (example)lock and the item name
Player: lock magic plate armor
Option 1: You dont have this item!
Option 2: Ok now your item is safe! if you want to take out for item from the locked area just say unlock and the item name
Player: unlock magic plate armor
Option 1: Here you are!
Option 2: You dont have this item in the locked area.



I really dont know how to do this script, I will really appreciate if someone can do it for me, of course I will rep+
 
You may only bring up your thread every 24 hours. I'm pretty sure you knew this rule.
Next time please follow the rules, i'm not an administrator, just helping the community.
 
@up Free post yeah?

Anyway this is can be done when i have time if its not done ill do it for you. All you need in is a movement script that checks the database for a same password.
 
Back
Top