Jump to content

donkeyg

Members
  • Posts

    1060
  • Joined

  • Last visited

Everything posted by donkeyg

  1. //===== rAthena Script ======================================= //= Guild Prize Giveaway //===== By: ================================================== //= AnnieRuru / Mysterious / Joseph //===== Current Version: ===================================== //= 1.7 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= Rewards guild masters of castle owners after each //= War of Emperium session. //===== Additional Comments: ================================= //= v1.0 - Intitial Re-release [Mysterious] //= v1.1 - Language structures [Mysterious] //= v1.2 - Added divisions [Mysterious] //= v1.3 - Added proper information [Mysterious] //= v1.4 - Optimized! [Euphy] //= v1.5 - Little bit of cleaning [Mysterious] //= v1.6 - Fixed Agit on/off corruption. [Joseph] //= v1.7 - Fixed overweight issues [Joseph] //============================================================ izlude,116,127,4 script Castle Rewards 878,{ function GetCastle; set .@reward,671,1; //<Item_ID>,<Amount>{,...} set .@n$,"["+strnpcinfo(0)+"]"; mes "Your guild [^0000FF"+getguildname(getcharid(2))+"^000000] has conquered:"; for(set .@i,0;.@i<getarraysize(.Castles$);set .@i,.@i+1) if (getcastledata(.Castles$[.@i],1) == getcharid(2)) { mes " > "+getcastlename(.Castles$[.@i])+""; set .@c,1; setarray .@uh$[getarraysize(.@uh$)],.Castles$[.@i],(1<<.@i); } if (!.@c) { mes " > No castles."; close; } next; if (select(((getguildmasterid(getcharid(2))==getcharid(0))?((agitcheck()||agitcheck2())?"":"Redeem Reward"):"")+":Close")==2) close; mes .@n$; mes "Please select a castle to redeem your guild reward."; for(set .@i,0;.@i<getarraysize(.@uh$);set .@i,.@i+2) set .@m$,.@m$+($castle_reward&(1<<GetCastle(atoi(.@uh$[.@i+1])))?"^0000FF":"^FF0000")+getcastlename(.@uh$[.@i])+"^000000:"; next; set .@m,select(.@m$)-1; if ($castle_reward&(1<<GetCastle(atoi(.@uh$[.@m*2+1])))) { mes .@n$; mes "Here's your reward for conquering ^0000FF"+getcastlename(.@uh$[.@m*2])+"^000000."; mes "You should divide these among your guild members."; for(set .@i,0;.@i<getarraysize(.@reward);set .@i,.@i+1) if (!checkweight(.@reward[.@i],.@reward[.@i+1])) { mes " "; mes "^FF0000Overweight!^000000"; close; } for(set .@i,0;.@i<getarraysize(.@reward);set .@i,.@i+1) getitem .@reward[.@i],.@reward[.@i+1]; set $castle_reward,$castle_reward^(1<<GetCastle(atoi(.@uh$[.@m*2+1]))); close; } mes .@n$; mes "It seems like you've redeemed the reward."; close; function GetCastle { for(set .@j,0;.@j<getarraysize(.Castles$);set .@j,.@j+1) { set .@c1,.@c2|(1<<.@j); if (getarg(0)==.@c1) return .@j; } return -1; } OnAgitEnd: OnAgitEnd2: for(set .@i,0;.@i<getarraysize($WOE_CONTROL);set .@i,.@i+4) if (gettime(4)==$WOE_CONTROL[.@i] && gettime(3)==$WOE_CONTROL[.@i+2] && $castle_reward&(1<<GetCastle($WOE_CONTROL[.@i+3])) == 0) set $castle_reward,$castle_reward|(1<<GetCastle($WOE_CONTROL[.@i+3])); end; OnInit: setarray .Castles$, "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05", "payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05", "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05", "aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05", "arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05", "schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05"; end; } i use @loadnpc command, but the script seems didnt work, i click the npc and the npc didnt give me any respond lol.
  2. another error, my fren opened the storage, straight close down the client and also everytime they login RO , their cart wil auto off, need to re-take the cart from npc
  3. Thanks! hope can get ur reply asap!
  4. DESTINATION [Root] , where is the where's the destination root? can give me more explantation please... new about that
  5. how do i renamed the AI folder with using thor patcher??
  6. can u make it can u make it like the function of Toasty WoE Controller? like there's how many hour/minutes/seconds still remaining the event will be start
  7. which lua files am i missing? i think it's my lua files problem right?
  8. Hello everyone, recently i have make a pvp room n i set it cannot use any command / teleport.. but after i restart my server, they still able to use teleport and commands ... why?? guild_vs1<TAB>mapflag<TAB> noteleport guildvs1<TAB>mapflag<TAB>nocommand
  9. ya, im using rathena~ i don have get any error with it~ but my players does even if they updated to the latest miruku
  10. i m using 2012 04 10 's client, but when i use "CHange cart" this skill, there's no new cart for me, but other player had, but when they use the new cart, some of my players get error and i didnt .. is it they doesnt have update the KRO to the latesT? i can see their new cart, but myself don have the new cart=.="
  11. the npc will re-give the reward to me once i restart the server...
  12. just remove the word at Line: 2052 = Personal/Favourite Tab?
  13. yaeh, im using luafiles 514 provided by judas and client date was 2012 04-10. may i know the inventory tab is located in which files? bumpp
  14. thanks may i know where to get the latest full data files folder? thanks may i know where to get the latest full data files folder? i got this erro again, the inventory tab so giant
  15. even i have updated the msgstringtable.txt .. i still get alot different words~ Lots of things are in a different language, like 2 of the Item tabs(including the new tab that we have no idea what it is for), inviting someone to a party, most of the Battleground tab, some of the Booking tab, the descriptions in the Navigation tab, the 2 new tabs in the Party tab, the checkbox in the Quest tab.
  16. another request, can i set the time and prize by myself in game?
  17. @reloadbattleconf doesnt works with mapflag?
  18. why still can use @commands even i load /restart the script i have <TAB>
  19. 29875,Red_Valkyrie_Helm,Red_Valkyrie_Helm,5,20,,10,,10,,1,0xFFFFFFFF,7,2,256,,0,1,1974,{ bonus bAllStats,3; bonus2 bAddRace,RC_DemiHuman,5; if(getrefine() > 8 bonus2 bSubRace,RC_DemiHuman,5; },{},{}
  20. yeah!! this is what i wan to say lol!!! but i totaly don know which 1 should i remove and add in the script there The KOE script got bugged, magic can hit the emperium!! http://rathena.org/board/topic/70567-peopleperson49s-scripts/page-6
×
×
  • Create New...