Jump to content
  • 0
Sign in to follow this  
DevilSupremeRO

Addtional Prize

Question

I want to add more prize like 5-6 items anyone?

 

OnClock1900:
    [email protected]$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )];
    [email protected] = .sleep / 60000;
    announce "[World Boss] A World Boss will appear in " + [email protected] + " minutes", bc_all, 0xFF0000;
    sleep .sleep;
    monster [email protected]$, 153, 175, "Devils Pet", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
    announce "[World Boss] A World Boss appeared in " + [email protected]$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000;
    end;
    
OnWBossDied:
    announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000;
    getitem .rewardId, .rewardCount;
    end;
    
OnInit:
    setarray .townMap$[0],"prontera","geffen";
    .wBossId = 1931;        // monsterID
    .rewardId = 7828;        // reward ID
    .rewardCount = 50;        // how many rewards
    .sleep = 60000;         // 60000ms = 1min
    end;
}

 

Edited by Haruka Mayumi
Code Box

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
OnClock1900:
    [email protected]$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )];
    [email protected] = .sleep / 60000;
    announce "[World Boss] A World Boss will appear in " + [email protected] + " minutes", bc_all, 0xFF0000;
    sleep .sleep;
    monster [email protected]$, 153, 175, "Devils Pet", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
    announce "[World Boss] A World Boss appeared in " + [email protected]$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000;
    end;
    
OnWBossDied:
    announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000;
    for([email protected]=0;[email protected]<getarraysize(.rewardId);[email protected]++)
        getitem .rewardId[[email protected]], .rewardCount[[email protected]];
    end;
    
OnInit:
    setarray .townMap$[0],"prontera","geffen";
    .wBossId = 1931;        // monsterID
    setarray .rewardId[0],7828,501,502,503;        // reward ID
    setarray .rewardCount[0],50,1,2,3;        		// how many rewards
    .sleep = 60000;         // 60000ms = 1min
    end;

 

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Haruka Mayumi said:
OnClock1900:
    [email protected]$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )];
    [email protected] = .sleep / 60000;
    announce "[World Boss] A World Boss will appear in " + [email protected] + " minutes", bc_all, 0xFF0000;
    sleep .sleep;
    monster [email protected]$, 153, 175, "Devils Pet", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
    announce "[World Boss] A World Boss appeared in " + [email protected]$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000;
    end;
    
OnWBossDied:
    announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000;
    for([email protected]=0;[email protected]<getarraysize(.rewardId);[email protected]++)
        getitem .rewardId[[email protected]], .rewardCount[[email protected]];
    end;
    
OnInit:
    setarray .townMap$[0],"prontera","geffen";
    .wBossId = 1931;        // monsterID
    setarray .rewardId[0],7828,501,502,503;        // reward ID
    setarray .rewardCount[0],50,1,2,3;        		// how many rewards
    .sleep = 60000;         // 60000ms = 1min
    end;

 

thanks i'll test it right away...

 

Share this post


Link to post
Share on other sites
  • 0
22 hours ago, Haruka Mayumi said:
OnClock1900:
    [email protected]$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )];
    [email protected] = .sleep / 60000;
    announce "[World Boss] A World Boss will appear in " + [email protected] + " minutes", bc_all, 0xFF0000;
    sleep .sleep;
    monster [email protected]$, 153, 175, "Devils Pet", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
    announce "[World Boss] A World Boss appeared in " + [email protected]$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000;
    end;
    
OnWBossDied:
    announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000;
    for([email protected]=0;[email protected]<getarraysize(.rewardId);[email protected]++)
        getitem .rewardId[[email protected]], .rewardCount[[email protected]];
    end;
    
OnInit:
    setarray .townMap$[0],"prontera","geffen";
    .wBossId = 1931;        // monsterID
    setarray .rewardId[0],7828,501,502,503;        // reward ID
    setarray .rewardCount[0],50,1,2,3;        		// how many rewards
    .sleep = 60000;         // 60000ms = 1min
    end;

 

it didnt work.. it just give 1 item

Share this post


Link to post
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
Answer this question...

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

Sign in to follow this  

×
×
  • Create New...

Important Information

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