checklockcommand() script – Check player atcommand lock status using NPC script – Free Code!
Well, after we’re talking about @lockcommand, lockcommand(), and unlockcommand(), here the custom script command to check the player’s lock status. This source modification can be used on NPC script. If you need to check the player’s lock status, you can use this checklockcommand().
checklockcommand() will give return value based on player’s lock status. If player is locked by @lockcommand or lockcommand() script, checklockcommand will gives return value as 0. If the player is unlocked, when you use this custom script command, it will gives you return value as 1.
For an example, you can use these lines below.
... if(checklockcommand) { unlockcommand; mes "You can use atcommand now"; } else { lockcommand; mes "You can not use atcommand from now on!"; } ...
Here the screen shots about checklockcommand(). You can download the full .patch file and this sample NPC script free.
Download full lockcommand script – Lock player atcommand using NPC script – Free Code!
Download full lockcommand script .patch file for eAthena
Download full lockcommand script .patch file for rAthena
Download full lockcommand script .patch file for 3CeAM
Download checklockcommand() NPC script – Free Script!
Download checklockcommand() NPC script
*Above are Mediafire links*