Jump to content
  • 0

Guild Pack Giver Mac


Brave

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   11
  • Joined:  05/31/12
  • Last Seen:  

I would like a mac instead of IP address how would i change it?

that is the scripts

map,x,x,x	script	GPack NPC	x,{

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

				getitem2 17638,1,1,8,0,0,0,0,0;
				getitem2 17639,1,1,8,0,0,0,0,0;
				getitem2 17640,1,1,8,0,0,0,0,0;
				getitem 17641,1;
				getitem2 17642,1,1,8,0,0,0,0,0;
				getitem 2449,1;
				getitem 17620,5;
				getitem 12202,20;
				getitem 12203,20;
				getitem 12204,20;
				getitem 12206,20;
				getitem 12207,20;
				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===//

mapname	mapflag	nocommand	99
mapname	mapflag	restricted	6
mapname	mapflag	nosave	SavePoint
mapname	mapflag	nomemo
mapname	mapflag	noreturn
mapname	mapflag	nobranch
mapname	mapflag	noloot
mapname	mapflag	noskill
mapname	mapflag	novending
mapname	mapflag	nowarpto	99

is this right?

map,x,x,x	script	GPack NPC	x,{

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_mac FROM `login` WHERE account_id = "+getcharid(3)+"", .@lip$);	// recruits ip address
				query_sql("SELECT last_mac 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

				getitem2 17638,1,1,8,0,0,0,0,0;
				getitem2 17639,1,1,8,0,0,0,0,0;
				getitem2 17640,1,1,8,0,0,0,0,0;
				getitem 17641,1;
				getitem2 17642,1,1,8,0,0,0,0,0;
				getitem 2449,1;
				getitem 17620,5;
				getitem 12202,20;
				getitem 12203,20;
				getitem 12204,20;
				getitem 12206,20;
				getitem 12207,20;
				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===//

mapname	mapflag	nocommand	99
mapname	mapflag	restricted	6
mapname	mapflag	nosave	SavePoint
mapname	mapflag	nomemo
mapname	mapflag	noreturn
mapname	mapflag	nobranch
mapname	mapflag	noloot
mapname	mapflag	noskill
mapname	mapflag	novending
mapname	mapflag	nowarpto	99
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

you can use that if u have mac checker. like harmony it has built in mac checker

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...