Famous Posted October 17, 2012 Posted October 17, 2012 Can I request a npc that set a password and use this command can_trade: false for lock and can_trade: true for unlock if you enter a correct password?? bump!! Quote
Bin4ry Posted October 17, 2012 Posted October 17, 2012 Not sure if there command to invoke ID's trade, but you can try make Group ID 0 can trade, Group ID 1 can't trade. If a "Locked" player login, use OnPCLoginEvent to atcommand "@adjgroup 1 "+strcharinfo(0). I'm lazy to write the whole script, work a little bit Quote
Famous Posted October 20, 2012 Author Posted October 20, 2012 thanks but I need a whole script I hope there is some one who can help me Quote
Bin4ry Posted October 20, 2012 Posted October 20, 2012 Idea is given, why not try to write on your own? Use atcmd "adjgroup 1 " + strcharinfo; for those whose account is locked in label OnPCLoginEvent. Quote
Bin4ry Posted October 22, 2012 Posted October 22, 2012 (edited) http://pastebin.com/raw.php?i=hW81mAyG For conf/group.conf, make sure you have can_trade: false in Group ID 1. Edit: You can also use @lock <password> and @unlock <password> to access. Edited October 22, 2012 by darristan Quote
Famous Posted October 22, 2012 Author Posted October 22, 2012 thanks its working but it doesnt recognize the password when I tried to unlock it.. and when I try to recon my char the lock will gone Quote
Bin4ry Posted October 22, 2012 Posted October 22, 2012 Weird. It uses permanent variables define account lock status. My guess is ur variable exceed to server default limit which is 64 per character. Quote
AnnieRuru Posted October 22, 2012 Posted October 22, 2012 (edited) mes "[Account Manager]"; mes "Password is now set. Account will be locked upon log out."; set .@Pass$, #AccPass$; // <----- THIS LINE set #AccLock, 1; atcommand "@adjgroup 1 " + strcharinfo(0); close; can I ask what that line means ? also please make sure to do some protection so a GM will not get demoted <.< Edited October 22, 2012 by AnnieRuru Quote
Famous Posted October 29, 2012 Author Posted October 29, 2012 I hope some one can make another script that's works fine .. Quote
Bin4ry Posted October 29, 2012 Posted October 29, 2012 That sounds very rude, you didn't even try the script and said it's not working and trying to make another request. Just apply the small typo fix by Annie then is fine. Quote
Famous Posted October 30, 2012 Author Posted October 30, 2012 sorry I didn't know how to apply it properly need your help can you make it for me? Quote
Question
Famous
Can I request a npc that set a password and use this command can_trade: false for lock and can_trade: true for unlock if you enter a correct password??
bump!!
12 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.