Jump to content
  • 0

Reward NPC IP Base


balanar12321

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/11/15
  • Last Seen:  

//Event Reward
prontera,196,173    script    Reward    99,{
    mes "[You Win]";
    close2;
    warp "Save",0,0;
    if ( getcharid(2) == $eventgid )
    getitem 969, 1; 
}

 

 

 

How can i make this NPC Event Reward Giver to make it IP base?

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   169
  • Joined:  04/05/13
  • Last Seen:  

Use getcharip (\doc\script_commands.txt line 2530)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   60
  • Joined:  09/23/17
  • Last Seen:  

11 hours ago, balanar12321 said:

//Event Reward
prontera,196,173    script    Reward    99,{
    mes "[You Win]";
    close2;
    warp "Save",0,0;
    if ( getcharid(2) == $eventgid )
    getitem 969, 1; 
}

How can i make this NPC Event Reward Giver to make it IP base?

It's a bad idea to do IP based rewards. People in a lot of countries have dynamic IPs or should I say, it's simple to change you static IP as well. The best thing you can do is create rewards that cant be traded, dropped, sold, or storaged. All your request would do is make an inconvenience to dual clienters or people in the same household who play the same server.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/11/15
  • Last Seen:  

On 9/27/2020 at 11:06 PM, TheDerpySupport said:

It's a bad idea to do IP based rewards. People in a lot of countries have dynamic IPs or should I say, it's simple to change you static IP as well. The best thing you can do is create rewards that cant be traded, dropped, sold, or storaged. All your request would do is make an inconvenience to dual clienters or people in the same household who play the same server.

i just want to make it IP Based to avoid abuse of prize every event


    if ($eventgid) {
        .@aid = getcharid(3, getguildmaster($eventgid));
        if (.@aid && isloggedin(.@aid)) {
            getitem 1080, 10, .@aid;
        }
    }

how to make this every guild member instead of guild master only, to recieve prizes at the end of the event

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