Jump to content
  • 0

Emp break reward..


Question

Posted

hiiii alll!!

can i have a request,,

during woe, everytime a breaker, brakes an emperium, he/she will get a points/reward or item.. and that points/reward or item will add up until the woe ends..

after woe the points/reward or item that he recieve can be traded to npc for an item,,,

get the idea??

please help, thanksss!!

4 answers to this question

Recommended Posts

Posted (edited)

Hi, I tried doing this one.

The character will accumulate points by breaking the emperium during WoE.

First, search for this in npc/guild/agit_main.txt:

// Announce that the Emperium is destroyed, and respawn all but new castle-occupants.
mapannounce strnpcinfo(2),"The emperium has been destroyed.",bc_map|bc_woe,"0x00CCFF",FW_NORMAL,12;
MapRespawnGuildID strnpcinfo(2),.@GID,2;

Then add a couple of lines:

// Announce that the Emperium is destroyed, and respawn all but new castle-occupants.
mapannounce strnpcinfo(2),"The emperium has been destroyed.",bc_map|bc_woe,"0x00CCFF",FW_NORMAL,12;
MapRespawnGuildID strnpcinfo(2),.@GID,2;
set breakp,breakp+1;
dispbottom "You've been awarded 1 point for breaking the emperium! You now have a total of "+breakp+" point(s)";

I attached a separate NPC script for the points exchanger. Just modify it to your likings. There are 5 default items, which are potions.

BTW, the NPC is available all the time. You might be asking it to be only available when the WoE is off, just assuming.

Breaker_Rewarder.txt

Edited by Enzo0714
Posted (edited)

Make a second npc that requires those posts for items.

And of course remember to delete those points after purchase.

prontera,150,150,5<tab>script<tab>sample<tab>99,{
if(breakp <= 0) close;
mes "what would you like to purchase";
switch(select("Item 1:Item 2:Item 3")){
case 1:
mes "this would be item 1";
getitem itemid,itemamount;
set breakp, breakp - 1;
close;

case 2:
mes "this would be item 2";
getitem itemid,itemamount;
set breakp, breakp - 1;
close;

case 3:
mes "this would be item 3";
getitem itemid,itemamount;
set breakp, breakp - 1;
close;
}
}

Edited by Nameless2you

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.

  • Recently Browsing   0 members

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