Jump to content
  • 0

Can I request security using can_trade: false


Famous

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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 :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

thanks :) but I need a whole script :) I hope there is some one who can help me ^_^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

can you make me one?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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 by darristan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Weird. It uses permanent variables define account lock status. My guess is ur variable exceed to server default limit which is 64 per character.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

        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 by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Haha didn realize and I'm not with PC.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

I hope some one can make another script that's works fine ..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

/x 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.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

sorry I didn't know how to apply it properly need your help can you make it for me?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...