Lazarus 
Master
 
Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1
Hybris Ultima Online
![]()
|
RE: targon_ground - need help ^_^
(08-08-2012 06:57 AM)Mordaunt Wrote:
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
That of t_multi doesn't works... I can tp in the houses  can you try in your own server please :'(?
but I'll try the other set of scripts, and will edit this.
I need go to dinner now.
Thanks, rly ^_^
|
|
08-08-2012 10:51 AM |
|
|