Jump to content
  • 0

Reward for all online player


mrlongshen

Question


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

Hello, i would like to request an npc that will send all item instant to any online player. 

 

on the npc there will be :

  1. a gm level check, or maybe i can set it what level of gm can send the item.
  2. of course the item id that will be set up.
  3. the amount of item to be sent.

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

An Emistry's script I like

  • Upvote 4
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

 

Thx alot sir :)

+1 for you.

Edited by mrlongshen
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  354
  • Reputation:   3
  • Joined:  02/17/13
  • Last Seen:  

how to use this npc

when i click over it

pick map or all ???

!!

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

This npc use whisper system.

whisper the npc npc:Sample    then write in your chat     map#512#10   to give x10 item id (512) to all player in the same map of you.

--------------------------------------------------------------------     all#512#123    to give x123 item id (512) to all players online

 

Only gmlevel 99 or highter can use this npc

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  354
  • Reputation:   3
  • Joined:  02/17/13
  • Last Seen:  

- I Added the NPC

- I Have Restarted The Server

- 50 Players were Online

- I Tryed Using it [ Gave 1 x Mithril Coin to 0 Player(s) ]

- Any Help pls trying solve it

- Using 3CeAM

Edited by Rage Guy
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

- I Added the NPC

- I Have Restarted The Server

- 50 Players were Online

- I Tryed Using it [ Gave 1 x Mithril Coin to 0 Player(s) ]

- Any Help pls trying solve it

- Using 3CeAM

 

this is for rathena T_T

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   4
  • Joined:  07/10/13
  • Last Seen:  

- I Added the NPC

- I Have Restarted The Server

- 50 Players were Online

- I Tryed Using it [ Gave 1 x Mithril Coin to 0 Player(s) ]

- Any Help pls trying solve it

- Using 3CeAM

 

Maybe you can use a different kind of scripting?
Maybe you can just have it a simply as clicking an NPC?
I'm using 3CeAM as well and sometimes some scripts here in rAthena does not work with 3CeAM
So what I do i try to do some tweaks with the script.
I can't create the whole code yet but maybe you can get an idea with this.
But try this one out.

prontera,173,173,4	Test	57,{
if( !#Freebies ){
set #Freebies,1;
mes "Hi this is your Reward for now";
getitem <item id>,<amount>; <----replace this with what your are going to give out.
//you can add another line here of getitem to add more types of rewards
next;
mes "Thank you and have a nice day!";
close;
}else{
mes "You have claimed the Reward already.";
}
close;
}

 

 

For this kind of NPC you would have to do some effort.
the !#Freebies,1; will make it exclusive per IP.
So if you would like it to be everyday you can comment it out.
And the Effort that I am talking to you about is.
 
1. Announce to all of the players in your server that the Rewards NPC appeared in prontera 173 173.
2. Announce the span of time it would only stay on.
3. Then after the span of time Disable the NPC so no one can try to access it again.
 
Maybe some of our Elite Scripting friends can help us working on setting the variables for the tasks that has to be done.
I got some idea on how to do this but for the time being I cant apply it yet.
Thanks hope I did help you atleast a little bit.
 
Edited by redhotzip
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  354
  • Reputation:   3
  • Joined:  02/17/13
  • Last Seen:  

Thanks Any Way

but 1 more question

 

-can i make this npc with IP ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   4
  • Joined:  07/10/13
  • Last Seen:  

Thanks Any Way

but 1 more question

 

-can i make this npc with IP ?

 

Yes. with the 

if( !#Freebies ){
set #Freebies,1;

But it might be that if you set this the next day the your going to give the next set of rewards some of the players who already did get the reward on the first day might just get the message that they already claimed the reward.

 

We need help from the PRO's with this. Hehe. But if in case I can study it in a bit, I'll surely take a look at it.

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