Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #IF %isnumber(%key) {#ADDKEY Mob_Targets %key %val
- //
- // Area Name as DB variable for MOB# Logging..
- // Gets Zone name from GMCP and replaces spaces with underscores:
- // %replace(%copy(@info.zone,18)," ","_")
- //
- $area_name=%replace(%replace(%copy(@info.zone,18)," ","_"),"'","")
- #IF %vartype(%string(%replace(%replace(%copy(@info.zone,18)," ","_"),"'","")))=%null {
- //#ECHO DEBUG -- Creating $area_name DB
- #VAR %replace(%replace(%copy(@info.zone,18)," ","_"),"'","") %null
- #CALL %vartype(%replace(%replace(%copy(@info.zone,18)," ","_"),"'",""),5)}
- //
- //Check if %key is already in DB?
- //
- //ADDS Mob to Areaname as DB
- #IF %iskey(@%string($area_name),%key) {}
- #ADDKEY %replace(%replace(%copy(@info.zone,18)," ","_"),"'","") %key %string(%val)
- }
- {#ADDKEY Pc_Targets %key %val}
- }
- #CLASS 0
- //BUG FIX! -- Loops to remove cache of room.players to maintain @Players for LIVE tracking (Fix)
- #LOOPDB %gmcp.Room.Players {#DELKEY %gmcp.Room.Players %key}
Add Comment
Please, Sign In to add comment