False.Genesis 5c267fe5aa * forgot to remove debug output in slap.def + fixed untargeting.
* AUTH_LOGON_PROOF msg is now shown in debug mode only.
2007-04-02 22:52:58 +00:00

32 lines
820 B
Modula-2

// purpose: let a player fly. (at least works on MaNGOS)
// args: @def: player name
// returns: guid of the targeted player, else false. empty string if we are not in the world.
#permission=100
// we can use this script only if we are in the world
if ?{not ${@inworld}}
logerror Can't slap anything if i am not in the world!
return
endif
// normalize player name. first char uppercased, rest lowercased.
set,name ?{uppercase ?{substr,1 ${@def}}}
set,len ?{strlen ${@def}}
sub,len 1
append,name ?{lowercase ?{substr,${len},1 ${@def}}}
// target the player. if targeting was successful, cast spell "Knockback 500".
set,t ?{target ${name}}
if ${t}
logdebug slapping player '${name}'
castspell 11027
target
else
logerror Can't target player '${name}'
endif
unset name
return ${t}