Jump to content
  • 0

WoE Reward


Yasunari Ishibashi

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

So the script function is to give the gift of each end of WoE to the owner of a certain castle & gifts directly given to all players in a guild that won the WoE, so I want to give gifts Item ID: 7539 & Cashpoint +10 every time WoE ends.

only an online player who get the prize.

if anyone can make a simple script?

thanks.

Edited by Yasunari Ishibashi
Link to comment
Share on other sites

  • Answers 64
  • Created
  • Last Reply

Top Posters For This Question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

Hi Emistry

Goddameit's updated script: http://pastebin.com/raw.php?i=Mdm6iFaR i think must put in agit controller right?

Link to comment
Share on other sites


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

no need

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

Noted. I will try.

Thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

is this sql?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Yes it's SQL. (You shouldn't be using TXT anyway...)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

Hi Euphy

If i Copy and paste in notepad and load to custom npc this script should be run or not?

Thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Hi Euphy

If i Copy and paste in notepad and load to custom npc this script should be run or not?

Thanks

Yes, it will run automatically after WOE ends no matter where you put the script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

Noted Sir. Thanks for your kindly assist .

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

its works GM Incarnation?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

PapaZola u can try in your server. I think its work.

Edited by GM Incarnation
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  05/12/12
  • Last Seen:  

thanks for this!! nice script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

There is a bug that N characters in the same account the same guuild

will receive N times WoE Reward

Edited by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

got error..

[Error]: run_script: infinity loop !

[Debug]: Source (NPC): AGME (invisible/not on a map)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

Sir Euphy and Emistry

This script can add random reward? Pls advise.

Goddameit's updated script: http://pastebin.com/raw.php?i=Mdm6iFaR

and this error will show after woe finish.

lo0cciegj1.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

try my woe reward script

Woeautoreward.txt

Edited by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

@QQfoolsorellina

i try ur script and i got this error

[Error]: Loading NPC file: npc/infi/woereward.txt

script error on npc/infi/woereward.txt line 18

parse_callfunc: expected ')' to close argument list

13 :

14 : if (isloggedin(.@gmaid[.@i],.@gmcid[.@i]) && att

achrid(.@gmaid[.@i]))

15 : {

16 : if(checkvending())

17 : continue;

* 18 : if(.maxw > 1 && query_sql("SELECT char_i

d FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id WHERE login.

last_ip=(SELECT last_ip FROM login WHERE account_id="+.@gmaid[.@i]+") AND `char`

.party_id ="+gecharid'('1), .@dcid) > .maxw)

19 : continue;

20 :

21 : query_sql "insert into mail ( send_name,

dest_id, title, message, nameid, amount, identify, time ) values ( 'Angelmeolod

y╝·└y¿t▓╬',"+.@gmcid[.@i]+", '½░╛╘╝·└y', '«Ñ│▀! ▒z¬║ñu╖|ª√╗Γ "+ getcastlename($@

castlemap$[.@j]) +" │o¼O¿t▓╬╡╣ºA¬║╝·└yº╞▒µºAªAÑ[¬o',"+.prize+", 1, 1, unix_times

tamp( now() ) )";

22 :

23 : }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

@QQfoolsorellina

i try ur script and i got this error

[Error]: Loading NPC file: npc/infi/woereward.txt

script error on npc/infi/woereward.txt line 18

parse_callfunc: expected ')' to close argument list

13 :

14 : if (isloggedin(.@gmaid[.@i],.@gmcid[.@i]) && att

achrid(.@gmaid[.@i]))

15 : {

16 : if(checkvending())

17 : continue;

* 18 : if(.maxw > 1 && query_sql("SELECT char_i

d FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id WHERE login.

last_ip=(SELECT last_ip FROM login WHERE account_id="+.@gmaid[.@i]+") AND `char`

.party_id ="+gecharid'('1), .@dcid) > .maxw)

19 : continue;

20 :

21 : query_sql "insert into mail ( send_name,

dest_id, title, message, nameid, amount, identify, time ) values ( 'Angelmeolod

y╝·└y¿t▓╬',"+.@gmcid[.@i]+", '½░╛╘╝·└y', '«Ñ│▀! ▒z¬║ñu╖|ª√╗Γ "+ getcastlename($@

castlemap$[.@j]) +" │o¼O¿t▓╬╡╣ºA¬║╝·└yº╞▒µºAªAÑ[¬o',"+.prize+", 1, 1, unix_times

tamp( now() ) )";

22 :

23 : }

sorry, it's a typo gecharid'('1) --->getcharid'('1)

update

Edited by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

Great it works!!

Thank you so much QQfoolsorellina!!

Q:

can this be change, item will recieve in inventory not in email??

coz i disable mail in my server bec. of coins bug...

Edited by arnie2302
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

This script can change and update with random reward like berry box or fish box

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

Are you asking to change the reward or your telling about the cript reward?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

Sorry actually i want ask this script can put random reward after woe finish

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

can this be change, item will recieve in inventory not in email??

replace this line

query_sql "insert into mail.................

with

getitem .prize,1;

Sorry actually i want ask this script can put random reward after woe finish

yes you can create a box and in item script to write what you want to do

Edited by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

can this be change, item will recieve in inventory not in email??

replace this line

query_sql "insert into mail.................

with

getitem .prize,1;

Sorry actually i want ask this script can put random reward after woe finish

yes you can create a box and in item script to write what you want to do

Hi QQfoolsorellina

how to make this reward random prize after woe finish. Can add more then 2 or 3 prize random after woe finish?

Thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

@QQfoolsorellina

i try this i got error:

replace this line

query_sql "insert into mail.................

with

getitem .prize,1;

how to fix this??

btw im using eathena..

[Debug]: at ..\src\map\script.c:14691 - getitem .prize,1; ( send_name, dest_id,

title, message, nameid, amount, identify, time ) values ( 'Angelmeolody╝·└y¿t▓╬'

,150004, '½░╛╘╝·└y', '«Ñ│▀! ▒z¬║ñu╖|ª√╗Γ Sacred Altar │o¼O¿t▓╬╡╣ºA¬║╝·└yº╞▒µºAªA

Ñ[¬o',501, 1, 1, unix_timestamp( now() ) )

[Debug]: Source (NPC): Woeautoreward (invisible/not on a map)

: DB error - You have an error in your SQL syntax; check the manual that co

rresponds to your MySQL server version for the right syntax to use near 'getitem

.prize,1; ( send_name, dest_id, title, message, nameid, amount, identify' at li

ne 1

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