Yasunari Ishibashi Posted January 9, 2012 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 157 Reputation: 2 Joined: 01/06/12 Last Seen: August 25, 2014 Share Posted January 9, 2012 (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 January 9, 2012 by Yasunari Ishibashi Quote Link to comment Share on other sites More sharing options...
GM Incarnation Posted July 5, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 75 Reputation: 0 Joined: 03/19/12 Last Seen: October 25, 2012 Share Posted July 5, 2012 @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 corresponds 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 line 1arnie2302u can use this script update [b]Woeautoreward.txt[/b]i already use no problem.i change this set .prize,14232;//you can give a box contain your woe prizes¡Candgetitem .prize,10;all done. Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted July 5, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted July 5, 2012 (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 July 5, 2012 by QQfoolsorellina Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted July 5, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Share Posted July 5, 2012 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) Quote Link to comment Share on other sites More sharing options...
VyL0w Posted July 5, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 27 Reputation: 0 Joined: 05/12/12 Last Seen: December 30, 2014 Share Posted July 5, 2012 (edited) Hello i got this error T_T Edited July 5, 2012 by VyL0w Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted July 5, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Share Posted July 5, 2012 QQfoolsorellina fix this already... sorry, it's a typo gecharid'('1) --->getcharid'('1) update Quote Link to comment Share on other sites More sharing options...
VyL0w Posted July 5, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 27 Reputation: 0 Joined: 05/12/12 Last Seen: December 30, 2014 Share Posted July 5, 2012 already fixed ^^ Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted July 5, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted July 5, 2012 (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 July 5, 2012 by QQfoolsorellina Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted July 5, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Share Posted July 5, 2012 what will i change if i want only 1 item will be send? Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted July 5, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted July 5, 2012 (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 July 5, 2012 by QQfoolsorellina Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted July 5, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Share Posted July 5, 2012 (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 July 5, 2012 by arnie2302 Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 5, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 13 hours ago Share Posted July 5, 2012 you loaded the script 3 times ? or you duplicated the npc that can trigger the event ?? Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted July 5, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted July 5, 2012 (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 July 5, 2012 by QQfoolsorellina Quote Link to comment Share on other sites More sharing options...
GM Incarnation Posted July 6, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 75 Reputation: 0 Joined: 03/19/12 Last Seen: October 25, 2012 Share Posted July 6, 2012 Thanks You QQfoolsorellina. It's working very awsome script. Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted July 6, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Share Posted July 6, 2012 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!... Quote Link to comment Share on other sites More sharing options...
Question
Yasunari Ishibashi
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 IshibashiLink to comment
Share on other sites
Top Posters For This Question
14
11
10
8
Popular Days
Jul 5
28
Jan 14
9
Jul 3
9
Jul 4
4
Top Posters For This Question
GM Incarnation 14 posts
Ragnar Lothbrok 11 posts
Yasunari Ishibashi 10 posts
QQfoolsorellina 8 posts
Popular Days
Jul 5 2012
28 posts
Jan 14 2012
9 posts
Jul 3 2012
9 posts
Jul 4 2012
4 posts
Posted Images
64 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.