stydianx Posted October 7, 2012 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 390 Reputation: 27 Joined: 07/12/12 Last Seen: October 24, 2022 Share Posted October 7, 2012 (Tagalog) scripto ng isang majikal na karton kung saan pwedeng kumuha ng walang kasiguraduhang uri ng gamit, isang beses sa isang araw at matatagpuan ito sa lokasyon na ito >> prontera 46,284 (English) script of a magical box wherein you can get random chance of items, once a day and could be found at this location >> prontera 46,284 Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 7, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 7, 2012 (edited) Configure the random item array yourself. - script MagicBoxSpawn -1,{ OnInit: OnClock0000: set .BoxReward[0],502,503,504,505,506; set .SpawnHour, rand(24); OnMinute00: if (gettime(3) == .SpawnHour ) { set .DelayMin, rand(60); sleep (.DelayMin * 60000); while(1) { monster "prontera",46,284,"Magical Box",1360,1,"MagicBoxSpawn::OnBoxBreak"; // debugmes "Magical Box has been spawn!"; break; } } end; OnBoxBreak: // Item Reward goes here setarray .@Item[0],512,513,514; setarray .@Amount[0],2,4,6; set .@i, rand(getarraysize(.@Item)); getitem .@Item[.@i], .@Amount[.@i]; end; } Edited October 7, 2012 by darristan Quote Link to comment Share on other sites More sharing options...
stydianx Posted October 7, 2012 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 390 Reputation: 27 Joined: 07/12/12 Last Seen: October 24, 2022 Author Share Posted October 7, 2012 it say there is an error in line 1.. Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 7, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 7, 2012 Change the space into tab. Quote Link to comment Share on other sites More sharing options...
stydianx Posted October 7, 2012 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 390 Reputation: 27 Joined: 07/12/12 Last Seen: October 24, 2022 Author Share Posted October 7, 2012 still sends out error: [Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/MagicBox.txt', line '1'. Stopping... Quote Link to comment Share on other sites More sharing options...
Famous Posted October 8, 2012 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Share Posted October 8, 2012 - script<tab> MagicBoxSpawn <tab>-1,{ Quote Link to comment Share on other sites More sharing options...
stydianx Posted October 9, 2012 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 390 Reputation: 27 Joined: 07/12/12 Last Seen: October 24, 2022 Author Share Posted October 9, 2012 (edited) it still sends out the same error.. and now theres another one, it say "unknown syntak found on line 2 stopping...." here is what my script actually looks like: - script MagicBoxSpawn -1,{ OnInit: OnClock0000: set .BoxReward[0],502,503,504,505,506; set .SpawnHour, rand(24); OnMinute00: if (gettime(3) == .SpawnHour ) { set .DelayMin, rand(60); sleep (.DelayMin * 60000); while(1) { monster "prontera",46,284,"Magical Box",1360,1,"MagicBoxSpawn::OnBoxBreak"; // debugmes "Magical Box has been spawn!"; break; } } end; OnBoxBreak: // Item Reward goes here setarray .@Item[0],512,513,514; setarray .@Amount[0],2,4,6; set .@i, rand(getarraysize(.@Item)); getitem .@Item[.@i], .@Amount[.@i]; end; } Do i need to put another tab on both sides? Edited October 9, 2012 by stydianx Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 9, 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 October 9, 2012 <TAB> this refer to the TAB Button ...not asking you to put "<TAB>" on the script header..... 1 Quote Link to comment Share on other sites More sharing options...
stydianx Posted October 9, 2012 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 390 Reputation: 27 Joined: 07/12/12 Last Seen: October 24, 2022 Author Share Posted October 9, 2012 (edited) yes i know.. i just did that as an indicator! LOOOOOL! and by the way, nice nails those looks like a girl nail are you sure your a male? XD there i edited my previous post.. now that how it really looks like sorry for the confusion.. Edited October 9, 2012 by stydianx Quote Link to comment Share on other sites More sharing options...
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.