Jump to content
  • 0

guild pack giver


darking123

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

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

Link to comment
Share on other sites

18 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

You should use mac addresses if you have harmony.....for the ip restriction will not work everyone can use vpn/hotspotshield to proxy their ip's

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

so i am requesting for not only recording there ip but also there accounts that got the gpack

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   2
  • Joined:  10/09/12
  • Last Seen:  

You should use mac addresses if you have harmony.....for the ip restriction will not work everyone can use vpn/hotspotshield to proxy their ip's

yes i agreed with u mootie, but 1 more problem if using mac address some other user might be had same mac addresses its really rare but this phenomenan encountered by me last year not only on ro but also other games

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

You should use mac addresses if you have harmony.....for the ip restriction will not work everyone can use vpn/hotspotshield to proxy their ip's

yes i agreed with u mootie, but 1 more problem if using mac address some other user might be had same mac addresses its really rare but this phenomenan encountered by me last year not only on ro but also other games

ohh..so i am requesting for not only recording there ip but also there accounts that got the gpack

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

so i am requesting for not only recording there ip but also there accounts that got the gpack

easy to make alot of accounts anyway :) to able to trace them properly is mac addresses lol

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

ow..i do not have harmony or any kind of gameguard

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

Well that's the advantage of having gameguard you can do possible things.....well i hope someone helps you with this anyway.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

If you searched the forum, there's a script that will give the prize only to guild leader, and it'll be the guild leader's task to divide and share the prize equally to their members.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

    query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@lip$);
   query_sql("SELECT last_ip FROM `guildpack`", .@flip$); // WTF is this line ?? select 1st line only ?
   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$ + "')");

I think this part is wrong

it should be

    if ( query_sql( "select 1 from guildpack where last_ip = "+ getcharip(), .@dummy ) ) {
       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)) + "','" + getcharip() + "')");

@Mootie

hard to tell, I can also go play in CC and claim the item, and go back home to claim another item

since the mac_address is dynamic to your hardware setting,

if you use different computer + different IP, you can bypass this also

@nanakiwurtz

mes "These present are not tradable and not dropable";

you went off-topic

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

:(

I mean, why not use another script than this kind of script that logs users IP address, because if they played in a public internet cafe, there's always will be a problem like this.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

:(

I mean, why not use another script than this kind of script that logs users IP address, because if they played in a public internet cafe, there's always will be a problem like this.

lol, there's no known way to counter the players for bypassing item giver script

I always refuse for private server giving out newbie items, it always create problems

I prefer starter kit only comes with donations ( pay to rent the item for x days )

well, at least this is what I've learned after working on quite a few servers

guild leader's task to divide and share the prize equally to their members.

I can also create a guild on my own and create more accounts/characters to join the guild until meet the members requirement lol

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   8
  • Joined:  03/03/12
  • Last Seen:  

@glemor123 I'll update you soon about this request. :)

Edited by ShogS
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

i believe using

Cant Trade
Cant Transfer
Cant Vending
Cant Mail
Cant Drop

would be an ideal solutions for you if and only if these items are only obtainable through your guild pack and no other way for it...

IP / Mac address are easy manipulated by players if they know how ...stated by annie above..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

we know that the script i posted above only records IP address and it is easy to bypass..just wait for your ip address to reset in 24 hours then boom your account again can be able to get the gpack..i want that accounts that got the gpack would be recorded also..

another request is when the ip address is recorded and the current account...i want that all accounts that have same ip address with the first account that took the gpack would be recorded and cannot get anymore gpack..

so to shorten this up i want Accounts to be recorded also not only ip

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

if(##Gpack == 1) goto L_AG;
....
set ##Gpack, 1;
.....
L_AG:
mes "^616D7EYou Already Given a Package";
close;

seriously ... its already in the script ...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

if(##Gpack == 1) goto L_AG;
....
set ##Gpack, 1;
.....
L_AG:
mes "^616D7EYou Already Given a Package";
close;

seriously ... its already in the script ...

oic thank you

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  07/14/13
  • Last Seen:  

is it 1 time use only? i want to make it usable every woe..how to refresh the ip/account?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   2
  • Joined:  02/15/14
  • Last Seen:  

May I asked where is the sql executed script? Hmm.... or it's auto execute to the sql database.

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...