Yasunari Ishibashi Posted March 21, 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 March 21, 2012 I want to edit itemdb.txt so I want to make a random item when clicked on it to one of the 7 items. 12986,Pet_Egg_Scroll_Box9,Adventurer Pack Box,2,,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem rand(25194,25195,25197,25199,25202,25203,25205),1; },{},{} I question why there is writing a error server after restart server : "Parse_CallFunc Expeted ')' to close argument list" if anyone can help gave the solution? thanks. Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 21, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 21, 2012 the only part wrong here is the announcement.. and the script have somepart get wrong... nvm..here is the fix.. should be work fine by now.. [ Pastebin ] Custom Item from Box Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 21, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 21, 2012 getitem can only allow you to get 1 item....not a list of items.... Quote Link to comment Share on other sites More sharing options...
Yasunari Ishibashi Posted March 21, 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 Author Share Posted March 21, 2012 Item_db.txt : 12986,Pet_Egg_Scroll_Box9,Adventurer Pack Box,2,,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "CustomBoxUpper"; },{},{} Script : function script CustomBoxUpper { setarray .BoxItems[0],25194,25195,25197,25199,25202,25203,25205; set .Random, getarraysize( .BoxItems ); getitem .BoxItems[ rand( .Random ) ], 1; announce "["+strcharinfo(0)+"] baru saja memperoleh ["+getitemname(.BoxItems[ rand(.Random) ])+"] dari Custom Box.",0; end; } why when I opened the box the item out of default? not the item that I make in the script? please solution, thank you. Quote Link to comment Share on other sites More sharing options...
Yasunari Ishibashi Posted March 21, 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 Author Share Posted March 21, 2012 I've changed like the script that you are justified, but why do I still get the default item instead of a custom item that I can? do i have to make item_custom.txt in db folder? Can I be an example? Thank you. Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 21, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 21, 2012 huh ? what default item ? any screenshot to view your problem ? now i am confuse with your problem.. did you re-load the function script ? Quote Link to comment Share on other sites More sharing options...
Yasunari Ishibashi Posted March 21, 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 Author Share Posted March 21, 2012 Default item -> 12992 12986,Pet_Egg_Scroll_Box9,Adventurer Pack Box,2,,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem 12992,1; },{},{} Custom Item -> 25194,25195,25197,25199,25202,25203,25205 12986,Pet_Egg_Scroll_Box9,Adventurer Pack Box,2,,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "CustomBoxUpper"; },{},{} I have @ reloaditemdb the same result. I still get the default item instead of a custom item. I was sorry item_db.txt error, if you could share item_db.txt? Thank you. Quote Link to comment Share on other sites More sharing options...
Question
Yasunari Ishibashi
I want to edit itemdb.txt
so I want to make a random item when clicked on it to one of the 7 items.
12986,Pet_Egg_Scroll_Box9,Adventurer Pack Box,2,,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem rand(25194,25195,25197,25199,25202,25203,25205),1; },{},{}
I question why there is writing a error server after restart server :
"Parse_CallFunc Expeted ')' to close argument list"
if anyone can help gave the solution? thanks.
Link to comment
Share on other sites
6 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.