Jump to content
  • 0

Emp break reward..


Critica

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   23
  • Joined:  11/29/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  05/20/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

sorry for the late reply, its seem everything is working! :D

thank you guyS!

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