Jump to content

Meteor91

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Malaysia

Meteor91's Achievements

Santa Poring

Santa Poring (3/15)

  • First Post
  • Conversation Starter
  • Dedicated
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. thanks for reply. the script only works in prontera because of mapflag. my intention to make the check outside of prontera which mean prontera can have dual login other map cannot. by using OnPCLoadMapEvent: it already nice but the problem is it need mapflag to trigger to avoid something like said in the documentation "The fact that this label requires a mapflag for it to work is because, otherwise, it'd be server-wide and trigger every time a player would change maps. Imagine the server load with 1,000 players (oh the pain...)". i like your idea from previous script, but im just need to supply all the map exist in RO for the array. oh what a pain.. hahaha
  2. hi hendra814, thanks for the script. i have look into it, for me i wanna to make only prontera can have multiple login do this means i need to put all map inside the array? how about the server processing? is it taking alot of resource or not?
  3. Thanks for the fast response @hendra814, i look into it. anything i will ping here.
  4. Hello Team, i would like to get support for this script below. i found this ip limit script in this forum, the script working fine and i use it until now. the problem is, i want to make an adjustment where at prontera city there were no ip limit but when the player warp to dungeon map or other place the script will check whether they have 3 other chars outside prontera. if they have then the 4th login will be kick. i have try to make <if (strcharinfo(3) == "prontera") end;> it is not working means player can use this as advantage to login more than 3 id. kindly guide and assist me on this. below is the code:- - script Only3perIP -1,{ OnPCLoginEvent: if (getgmlevel() >= 99) end; set .@myname$, strcharinfo(0); if (query_sql("SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id WHERE login.last_ip='"+getcharip()+"' AND `char`.online=1 AND `char`.char_id!="+getcharid(0), .@name$) >= 3) { for (set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) { if (checkvending(.@name$[.@i]) != 2) set .@sameip, .@sameip +1; } if (.@sameip >= 3) { announce "Sorry, only 3 accounts per IP can be logged in at a time.", bc_self; sleep 1000; atcommand "@kick " + .@myname$; } } end; }
×
×
  • Create New...