stydianx Posted October 7, 2012 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
Bin4ry Posted October 7, 2012 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
stydianx Posted October 7, 2012 Author Posted October 7, 2012 it say there is an error in line 1.. Quote
stydianx Posted October 7, 2012 Author Posted October 7, 2012 still sends out error: [Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/MagicBox.txt', line '1'. Stopping... Quote
stydianx Posted October 9, 2012 Author 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
Emistry Posted October 9, 2012 Posted October 9, 2012 <TAB> this refer to the TAB Button ...not asking you to put "<TAB>" on the script header..... 1 Quote
stydianx Posted October 9, 2012 Author 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
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.