Okay, it seems like I cannot find the problem for the following issue.
I have one char with permission 100 and another one with permission 1. I wrote up a function in lua - for example: givemebuffs() the function gives buffs to a player.
added the function to allowedcommands for permission 100 and 1
sid permission command parameter
1 1 givemebuffs()
1 100 givemebuffs()
it works when the character with permission 100 runs the command /run givemebuffs() but does not work for the player with permission 1 when i try to run it /run givemebuffs()... for the character with permission 1 i get no errors or anything.. it simply does not execute the function.
i know that for permission 100 you do not even have to write anything in allowedcommandsforpermission as permission 100 is maximum and allows you to run any function, but well, it seems to be not able to execute any /run commands with any permission under 100 (tried with 0,1,2,3,4,5,10,15)
any suggestions? (log files show that it indeed loads all the permission functions)
.lua
Quote:
function get_module_name()
return "purepermission"
end
function givemebuffs()
add_state( 1001, 17, 540000 ) -- Max HP
add_state( 1002, 17, 540000 ) -- Max MP
add_state( 1003, 17, 540000 ) -- HP Regen
add_state( 1005, 17, 540000 ) -- MP Regen
add_state( 1007, 17, 540000 ) -- P. Atk
add_state( 1008, 17, 540000 ) -- M. Atk
add_state( 1009, 17, 540000 ) -- P. Def
add_state( 1010, 17, 540000 ) -- M. Def
add_state( 1011, 17, 540000 ) -- ATK Speed
add_state( 1012, 17, 540000 ) -- CST Speed
add_state( 1013, 33, 540000 ) -- MOV Speed
add_state( 1015, 30, 540000 ) -- Evasion
end
|
btw also tried to write the command in allowedcommandsforpermission without the brickets ( ) tried to add run as a allowedcommand for permission 1. nothing worked.