Jump to content

alone20

Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by alone20

  1. turbo_room,93,117,5 script Woe Prize Reward 986,{ waitingroom "Woe Rewarder",0; setcastledata "prtg_cas01", 1, getcharid(2); // just testing .. if ( agitcheck() ) { mes "a war is currently in progress"; mes "if your guild owned a castle ask your guild master to see me to claim the reward"; close; } set .@menu, select(.menu$) -1; if ( getcastledata("prtg_cas0"+( .@menu +1 ), 1) == getcharid(2) ) { if ( $castle_claimed & pow(2, .@menu) ) { mes "your guild already received the reward for "+ .castlename$[.@menu]; close; } else if ( getguildmasterid( getcharid(2) ) == getcharid(0) ) { mes "receiving the reward for "+ .castlename$[.@menu]; getitem 7179, 50 * (2 - .@menu); // some mathematics ... set $castle_claimed, $castle_claimed | pow(2, .@menu); close; } else { mes "ask your guild master to see me"; close; } } mes "your guild failed to take "+ .castlename$[.@menu]; mes "if your guild owned a castle ask your guild master to claim reward from me"; close; OnAgitEnd: set $castle_claimed, 0; // everytime woe ends the variable resets end; OnInit: setarray .castlename$, "Kriemhild", "Swanhild", "Fadhgridh", "Skoegul", "Gondul", "Bright Arbor", "Scarlet Palace"; for ( set .@i, 0; .@i < 7; set .@i, .@i +1 ) set .menu$, .menu$ + .castlename$[.@i] +":"; } i want to ask for ur help about this script. the prob is. my players telling me that the rewarder giving them 50 pcs of my reward. but when i test it my self its giving me 100 pc, any idea? and i would like to add 2 more castles. Bright arbor and scarlet palace. do you think u can help me? advance thanks for you
  2. mapname,x,y,direct script NPCName spriteid,{ mes .npcname$; mes "Hello ^ff0000"+strcharinfo(0)+"^000000,"; mes "I can refine your equipment for a ^ff0000100% chance^000000!"; mes "All I need is ^ff00001 God Anvil^000000."; for( set .@i,1; .@i <= 10; set .@i,.@i+1 ) { if( getequipisequiped(.@i) ) set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@menu$, .@menu$ + ":"; } set .@part,select(.@menu$); if(!getequipisequiped(.@part)) { next; mes .npcname$; mes "You're not wearing"; mes "anything there that"; mes "I can refine."; emotion 6; close; } //Check if the item is refinable... if(!getequipisenableref(.@part)) { next; mes .npcname$; mes "I don't think I can"; mes "refine this item at all..."; close; } //Check to see if the items is already +10 if(getequiprefinerycnt(.@part) >= 10) { next; mes .npcname$; mes "I can't refine this"; mes "any more. This is as"; mes "refined as it gets!"; close; } next; mes .npcname$; mes "Do you really want me to refine that item?"; if(select("Yes:No") == 2){ mes "Okay, see you."; close; } if (countitem(7806) < 1){ mes "^ff0000You don't have a God Anvil!^000000"; close; } if (getequiprefinerycnt(.@part) >= 7){ mes "^ff0000This item is +7 or higher already.^000000"; close; } delitem 7806,1; while (getequiprefinerycnt(.@part) < 7){ successrefitem .@part; } mes "There you go!"; close; end; I'm not sure if I understood you correctly. But this will refine the item to +7 if it is +6 or lower and won't do anything if it +7 or higher. If you only want to refine from +0 to +7 change the last if to this: if (getequiprefinerycnt(.@part) == 0){ mes "^ff0000This item is refined already.^000000"; close; } Sir Thank you for the help. this will do.
  3. sir i would like to make it a refiner that refining in max +7, if the items is already +7 or higher it wont refine it again, and if the items already have + , all + lower than 7, it wont refine it too.
  4. i would like to ask an npc refiner for refine deed guys!
  5. thanks for the help guys!
  6. i would like to ask help to make all MVP auto give TCG to player who kill them. Thank you in advance!
×
×
  • Create New...