Jump to content

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


Recommended Posts

Posted (edited)

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
Posted

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;

Posted (edited)

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
  • 3 weeks later...
  • 2 weeks later...
  • 2 weeks later...
Posted (edited)

@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
Posted

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
  • 5 months later...
Posted

// [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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...