guys i want to add something to my guild pack script
we know that this scripts only records na IP address of the player;;
i want that also there account will be reported also the account that is desame with the IP of the other account
thank you
//Script Name: Guild Package NPC Giver
//Developer: ShogS
//Description: This NPC will Give a Package for each Guild Member take Note: this NPC will record each player IP address to avoid abuse on players side by getting 2 Package in 1 IP
//Version: 1.0
//Some Explanation: Do not forget to set the items to a not tradeable Sample: 17638,91,99 = Can not be droped,sell,trade
quiz_01,317,215,5 script GPack NPC 897,{
set .@frnd2$,strcharinfo(0);
if(##Gpack == 1) goto L_AG;
mes "Hello There it seems you are belong to a Guild";
mes "On our Server Let me Give you A Present for Joining and";
mes "Playing On Our Server We Hope You will enjoy this Present";
next;
mes "These present are not tradable and not dropable";
next;
switch(select("Yes:No")) {
case 1:
query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@lip$); // recruits ip address
query_sql("SELECT last_ip FROM `guildpack`", .@flip$); // recruiter ip address and information
if ( .@lip$ == .@flip$ ) {
mes "^616D7EIt seems you and your Guild Mates are from IP Address: ^ff0000" + .@flip$ + "^000000. Sorry, but its not allowed.";
close;
}
query_sql("INSERT INTO `guildpack` VALUES (NULL," + getcharid(3) + ",'" + escape_sql(strcharinfo(0)) + "','" + .@lip$ + "')");
//THIS PART WERE all items they will get
getitem 13895,1;
set ##Gpack, 1;
warp "prontera",157,157;
close;
case 2:
mes "^616D7ENevermind~, You can come back again!";
close;
}end;
L_AG:
mes "^616D7EYou Already Given a Package";
close;
}
//==JUST RENAME or PLACE the Map Name here===//
quiz_01 mapflag nocommand 99
quiz_01 mapflag restricted 6
quiz_01 mapflag nosave SavePoint
quiz_01 mapflag nomemo
quiz_01 mapflag noreturn
quiz_01 mapflag nobranch
quiz_01 mapflag noloot
quiz_01 mapflag noskill
quiz_01 mapflag novending
quiz_01 mapflag nowarpto 99
Question
darking123
guys i want to add something to my guild pack script
we know that this scripts only records na IP address of the player;;
i want that also there account will be reported also the account that is desame with the IP of the other account
thank you
Link to comment
Share on other sites
18 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.