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:  

@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

arnie2302

u can use this script update txt.gif [b]Woeautoreward.txt[/b]

i already use no problem.

i change this set .prize,14232;//you can give a box contain your woe prizes¡C

and

getitem .prize,10;

all done.

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

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.

random prize 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:  

thanks...

i get 3 items... how will i change to 1 items only?

random prize Woeautoreward.txt

i got this error:

[Error]: script:getelementofarray: illegal scope

[Debug]: Data: variable name='prizeamount'

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

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:  

Hello i got this error T_T

post-4578-0-05740600-1341504217_thumb.png

Edited by VyL0w
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 fix this already...

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

update

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:  

already fixed ^^

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:  

thanks...

i get 3 items... how will i change to 1 items only?

random prize Woeautoreward.txt

i got this error:

[Error]: script:getelementofarray: illegal scope

[Debug]: Data: variable name='prizeamount'

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

OMG! I should test before post

there are too many typo.orz

prizeamount[.@rn] should be .prizeamount[.@rn]

so correct script is

getitem .prize[.@rn],.prizeamount[.@rn];

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:  

what will i change if i want only 1 item will be send?

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:  

what will i change if i want only 1 item will be send?

setting .prizeamount array

setarray .prize[0],501,502,503;//set woe prize.

setarray .prizeamount[0],1,1,1;//set woe prize amount corresponding to .prize array

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:  

no! i mean 1 item only bec. that script gives me 3 items... i want to set it 1 item/it will just send the item once not 3 times..

i try to delete ,502,503 and 1,1; still it send the items 3 times... like

you got red potion (5)

you got red potion (5)

you got red potion (5)...

i want it will just send once

you got red potion (5)

sorry for my bad english..

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

you loaded the script 3 times ? or you duplicated the npc that can trigger the event ??

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:  

no! i mean 1 item only bec. that script gives me 3 items... i want to set it 1 item/it will just send the item once not 3 times..

i try to delete ,502,503 and 1,1; still it send the items 3 times... like

you got red potion (5)

you got red potion (5)

you got red potion (5)...

i want it will just send once

you got red potion (5)

sorry for my bad english..

It depends on how many castles you occupied

a lazy way to limit how many castle one guild can occupy

conf/battle/guild.conf

// Maximum castles one guild can own (0 = unlimited)

guild_max_castles: 1

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:  

Thanks You QQfoolsorellina. It's working very awsome script.

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:  

no! i mean 1 item only bec. that script gives me 3 items... i want to set it 1 item/it will just send the item once not 3 times..

i try to delete ,502,503 and 1,1; still it send the items 3 times... like

you got red potion (5)

you got red potion (5)

you got red potion (5)...

i want it will just send once

you got red potion (5)

sorry for my bad english..

It depends on how many castles you occupied

a lazy way to limit how many castle one guild can occupy

conf/battle/guild.conf

// Maximum castles one guild can own (0 = unlimited)

guild_max_castles: 1

oh i understand now, you will recieve items base on how many castle you occupied...

thanks you so much!...

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