Jump to content

Question

Posted (edited)

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
  • Answers 64
  • Created
  • Last Reply

Top Posters For This Question

Recommended Posts

Posted

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

Posted (edited)

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
Posted (edited)

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
Posted (edited)

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
Posted (edited)

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
Posted (edited)

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
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...