Jump to content

Recommended Posts

Posted

(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

Posted (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 by darristan
Posted (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 by stydianx
Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...