Cydh Posted February 4, 2013 Posted February 4, 2013 (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 logsv.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: 1Thank Fresh prince for this idea Screenshots Download v.1.0: at_lockcommand_script-rA-svn17200.patch Init. release: at_lockcommand_script-rA.patch Sample NPCs lockcommand(): LockCommand.txt unlockcommand(): LockCommandUn.txt checklockcommand(): LockCommandCheck.txt Lock and unlock with password lockcommand(): LockCommand-Pass.txt unlockcommand(): LockCommandUn-Pass.txt 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!! **If you like this, +1 please. ** Edited March 19, 2013 by Cydh 1 Quote
Cydh Posted February 4, 2013 Author Posted February 4, 2013 wow nice thank's can you release the npc script?? thnx! of course, uploaded Quote
Cydh Posted February 5, 2013 Author Posted February 5, 2013 great thnx I will try this!! post here if any problem Quote
Famous Posted February 6, 2013 Posted February 6, 2013 /*========================================== * @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; Quote
Cydh Posted February 6, 2013 Author Posted February 6, 2013 (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 February 6, 2013 by cydh Quote
Famous Posted February 6, 2013 Posted February 6, 2013 hahaha thats LOL I will check this further LOL Quote
simplexjay2 Posted February 25, 2013 Posted February 25, 2013 just want to know why my gm account cant use command even i allow commands Quote
Cydh Posted February 25, 2013 Author Posted February 25, 2013 did you add "lockcommand: true" on your groups.conf? Quote
rafoka Posted March 6, 2013 Posted March 6, 2013 very useful to force player to talk to a npc or something like that Quote
Fresh prince Posted March 10, 2013 Posted March 10, 2013 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!! Quote
Cydh Posted March 18, 2013 Author Posted March 18, 2013 (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 March 18, 2013 by Cydh Quote
Fresh prince Posted March 18, 2013 Posted March 18, 2013 Thank you cydh, i appreciate all your help. Godbless Quote
Cydh Posted March 19, 2013 Author Posted March 19, 2013 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. Quote
Famous Posted September 5, 2013 Posted September 5, 2013 // [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 Quote
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.