Jump to content
stydianx

Treasure box script request

Recommended Posts

(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

Link to comment
Share on other sites

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 [email protected][0],512,513,514;
setarray [email protected][0],2,4,6;
set [email protected], rand(getarraysize([email protected]));
getitem [email protected][[email protected]], [email protected][[email protected]];
end;
}

Edited by darristan
Link to comment
Share on other sites

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 [email protected][0],512,513,514;

setarray [email protected][0],2,4,6;

set [email protected], rand(getarraysize([email protected]));

getitem [email protected][[email protected]], [email protected][[email protected]];

end;

}

Do i need to put another tab on both sides?

Edited by stydianx
Link to comment
Share on other sites

yes i know.. i just did that as an indicator! LOOOOOL! /whisp

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 by stydianx
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.