Guest User

Untitled

a guest
Jul 15th, 2017
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #IF %isnumber(%key) {#ADDKEY Mob_Targets %key %val
  2. //
  3. // Area Name as DB variable for MOB# Logging..
  4. // Gets Zone name from GMCP and replaces spaces with underscores:
  5. // %replace(%copy(@info.zone,18)," ","_")
  6. //
  7. $area_name=%replace(%replace(%copy(@info.zone,18)," ","_"),"'","")
  8. #IF %vartype(%string(%replace(%replace(%copy(@info.zone,18)," ","_"),"'","")))=%null {
  9. //#ECHO DEBUG -- Creating $area_name DB
  10. #VAR %replace(%replace(%copy(@info.zone,18)," ","_"),"'","") %null
  11. #CALL %vartype(%replace(%replace(%copy(@info.zone,18)," ","_"),"'",""),5)}
  12. //
  13. //Check if %key is already in DB?
  14. //
  15. //ADDS Mob to Areaname as DB
  16. #IF %iskey(@%string($area_name),%key) {}
  17. #ADDKEY %replace(%replace(%copy(@info.zone,18)," ","_"),"'","") %key %string(%val)
  18. }
  19. {#ADDKEY Pc_Targets %key %val}
  20. }
  21. #CLASS 0
  22. //BUG FIX! -- Loops to remove cache of room.players to maintain @Players for LIVE tracking (Fix)
  23. #LOOPDB %gmcp.Room.Players {#DELKEY %gmcp.Room.Players %key}
Add Comment
Please, Sign In to add comment