Jump to content
  • 0
Critica

Emp break reward..

Question

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!!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

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

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),[email protected],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),[email protected],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
Link to comment
Share on other sites

Sorry for asking

if that part add on 1 point,

How to convert it to items

example like item code 7779

set breakp,breakp+1;

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



×
×
  • Create New...

Important Information

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