set .@frnd2$,strcharinfo(0);
if(##Gpack6 == 1) goto L_AG;
mes "Hello Would you like to Claim your Guild Package";
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 "^FF0000These present are not tradable and not dropable^000000";
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 already claimed your Guild Package: ^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 501,1;
set ##Gpack6, 1;
warp "prontera",156,196;
close;
case 2:
mes "^616D7ENevermind~, You can come back again!";
close;
}end;
L_AG:
mes "^616D7EYou Already Given a Package";
close;
OnInit:
//set .message$, "Claim your Guild Package Here!! ";
set .message$, "Click my Boobs to Claim your Guild Package!! ";
while (1) {
set .message$, delchar(.message$+charat(.message$,0),0);
delwaitingroom;
waitingroom .message$, 0;
sleep 200;
}
}
Question
Sallycantdance
hello i would like to put this guild package npc that will check if the player has a guild also checking the base level must be 50 above thank you
Link to comment
Share on other sites
1 answer 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.