Mordaunt 
Super Moderator
   
Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35

|
RE: targon_ground - need help ^_^
Code:
if (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_multi)
src.sysmessage you cannot teleport into a house
return 1
endif
that would fix the house issue...
As for the items and such, it would be a shorter script to say what you CAN tele onto than what you can't....
Code:
[function summon_ground_avaible]
if (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_normal) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_grass) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_sand) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_swamp) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_snow) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_jungle) || (<SERV.MAP(<argv[0]>,<argv[1]>,<argv[3]>).TYPE==t_forest)
return 0
else
src.sysmessage cannot teleport there
return 1
endif
Now if they target anything that is NOT ground they will not be allowed to teleport, couple this with the check for a multi, distance and los and it should prevent any nonsense
|
|
08-08-2012 06:57 AM |
|
|