Jump to content

@lockcommand, lockcommand(), unlockcommand(), checklockcommand()


Cydh

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Infromation

@lockcommand is custom atcommand to lock player to use every atcommands.

lockcommand() is used to lock player command using NPC script (like @lockcommand function to lock).

unlockcommand() is used to unlock player command using NPC script, so player can use their atcommand again.

checklockcommand() is used to check player lockcommand status using NPC script, the return values are 0 for unlocked and 1 locked.

Change logs

v.1.0

// [Cydh]
// This config if active will saves player lockcommand status to global_reg_value
// So, when player is locked and he/she relog, he/she will locked
// (Note 1)
reg_lockcommand: 1
Thank Fresh prince for this idea
 

Screenshots

post-5421-0-13735700-1359943347_thumb.jpgpost-5421-0-69031700-1359943361_thumb.jpgpost-5421-0-33233700-1359943374_thumb.jpgpost-5421-0-84668100-1359943387_thumb.jpgpost-5421-0-45817700-1359943406_thumb.jpg

 

Download

v.1.0: at_lockcommand_script-rA-svn17200.patch

 

Sample NPCs

Lock and unlock with password

**If you like this, +1 please. :P**

Edited by Cydh
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  396
  • Reputation:   53
  • Joined:  07/24/12
  • Last Seen:  

wow nice :)

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 release the npc script?? thnx!

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

wow nice :)

thank's

can you release the npc script?? thnx!

of course, uploaded

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:  

great thnx I will try this!! /no1

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

great thnx I will try this!! /no1

post here if any problem

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:  

errorve.jpg

/*==========================================

* @lockcommand by [Cydh]

* [email protected]

* Lock player to use atcommand

*------------------------------------------*/

ACMD_FUNC(lockcommand) <---- GOT Error on this part

{

char temp[CHAT_SIZE_MAX];

struct map_session_data* pl_sd = NULL;

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

you already have atcommand with @lockcommand, look at line 8461 (read your error msg).

because u had sent PM me before for that @lockcommand (@lock) and I gave you link to my post on eAthena. LOL

Edited by cydh
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:  

hahaha thats LOL :P I will check this further LOL

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  224
  • Reputation:   4
  • Joined:  02/09/12
  • Last Seen:  

just want to know why my gm account cant use command even i allow commands

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

did you add "lockcommand: true"  on your groups.conf?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   8
  • Joined:  01/09/12
  • Last Seen:  

very useful to force player to talk to a npc or something like that

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

This is great but can you provide a password on the lock and unlock npc so only the owner of the account can unlock? Thanks!!

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

@bump

update v.1.0

 

 

This is great but can you provide a password on the lock and unlock npc so only the owner of the account can unlock? Thanks!!

next update maybe, I implemented on your PM first Edited by Cydh
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Thank you cydh, i appreciate all your help.

Godbless

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

This is great but can you provide a password on the lock and unlock npc so only the owner of the account can unlock? Thanks!!

I gave you sample NPCs, look at fisrt post above. :D
Link to comment
Share on other sites

  • 5 months later...

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

// [Cydh]

// This config if active will saves player lockcommand status to global_reg_value

// So, when player is locked and he/she relog, he/she will locked

// (Note 1)

reg_lockcommand: 1

 

I already tested this but still when I relog the character automatically remove lockcommand

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
Reply to this topic...

×   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...