Jump to content
  • 0

help Guild Package Giver


seventhief

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  03/25/12
  • Last Seen:  

Hi, I want to make a guild package npc. Here's a code. I just want to have an expert to look at my code.

What I wanted support is how can I have an security so that it will not be abuse.

Making another guild. Creating another account. REPEATEDLY

Sorry for my english.

PS:

The code is not yet done.

The code here is just a edited version of guild pack giver of ShogS.

Code based layout credited to ShogS.

// Script Name: Guild Package NPC Giver
// Developer: Seventhief
// Description: Nulled
// Version: 0.1
//
prontera,145,171,1 script Guild Pack Giver 757,{
if(##Gpack == 0) goto L_AG;
mes "-- Guild Package Giver --";
mes "Looks like you're on guild";
next;
mes "- Sudden disconnection of guildsmen";
mes "  will not be given a consideration";
mes "- I am only obligated to give packages";
mes "  to guild with 10 members or more"
next;
mes "- This only a one time";
next;
switch(select("Yes:No")) {
 case 1:
  query_sql("SELECT `guild_id` FROM `guild_member` WHERE `char_id` = "+getcharid(0)+" AND `account_id` = "+getcharid(3)+"", .@gIDgiver);
  set .@nofoM, query_sql("SELECT `account_id`, `position` FROM `guild_member` WHERE `guild_id` = "+.@gIDgiver+" AND `online` = 1", .@aIDgiver, .@posgiver);
  if ( .@nofoM >= 9 ) { // Guild members incl. Master must be 10 or more
for(set .@i,0; .@i < .@nofoM; .@i++) {
 if ( .@posgiver[.@i] == 0 ) {
  // Give Item for Guild Master
  getitem 512,20,.@aIDgiver[.@i];
 }
 if ( .@posgiver[.@i] != 0 ) {
  // Give Item for Guild Members
  getitem 512,1,.@aIDgiver[.@i];
 }
} // End For
set ##Gpack, 0;
warpguild "prontera",157,157,.@gIDgiver;
close;
  }
 case 2:
  mes "Nevermind";
  close;
}end; // End Switch
L_AG:
mes "Given";
close;
} // End Main

Edited by seventhief
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  161
  • Reputation:   31
  • Joined:  12/06/11
  • Last Seen:  

You could set an IP limitation by querying the database once more and getting the IP adress, and setting a variable using the IP as its name. Yes, you could avoid it by using a proxy though. If you have Harmony you could call the MAC adress.

Edited by garet999
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...