Hello, My server is getting bigger. And I have noticed that some of the players are making 3-5 accounts or more in the vending area, is there any way in stopping them doing that?
I have a script here it was requested months ago, so is this possible or can detect vendors?
What I want with the script is if the player already have 3 vendors in the area he cannot go there anymore if he wants to put more merchants.
Is that possible?
- script dualclientkicker -1,{OnPCLoadMapEvent: set .@charmap$, strcharinfo(3); if(!compare(.tmp$,.@charmap$)) end; set .@len, query_sql("SELECT DISTINCT `account_id` FROM `char` WHERE`account_id` IN (SELECT `account_id` FROM `login` WHERE `last_ip` =(SELECT `last_ip` FROM `login` WHERE `account_id`="+getcharid(3)+")) AND`online` <> 0;",.@a); for(set(.@d,0);.@d<.@len;set(.@d,.@d+1)) { if(!getmapxy(.@map$,.@x,.@y,0,rid2name(.@a[.@d])) && .@charmap$==.@map$) set .@c,.@c+ 1; } if(.@c > .limitacc ) { dispbottom "You cannot more than 5 accounts in this map."; warp "prontera",0,0; } end; OnInit: set .limitacc,5; setarray .maps$,"prontera", "geffen"; set .lens , getarraysize(.maps$) ; for(set(.a,0);.a<.lens;set(.a,.a+1)) { setmapflag .maps$[.a], mf_loadevent ; set .tmp$ ,.tmp$+.maps$[.a]+","; }}
Hello, My server is getting bigger. And I have noticed that some of the players are making 3-5 accounts or more in the vending area, is there any way in stopping them doing that?
I have a script here it was requested months ago, so is this possible or can detect vendors?
What I want with the script is if the player already have 3 vendors in the area he cannot go there anymore if he wants to put more merchants.
Is that possible?
Share this post
Link to post
Share on other sites