Jump to content

Dolphin86

Members
  • Posts

    547
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Dolphin86

  1. Hello guys i had this script from emistry back few years ago, now i had some issue with it, the idea is that this healer npc can be rented by player for 1 month, so the owner of this npc can set the price for heal, those who use the npc had to pay the amount that had been set by the owner, now the problem is when ever i came to heal with 0 zeny or below the price that been set i will get freeze, and had to relogin again, P/S : if possible could i request a new feature that the owner can see how much zeny have been collected by the npc and owner can view how much time left for his renting, plus admin can also access and disable the monthly or renew the price and view how much time left for the owner renting. Thanks~ prontera,155,181,5 script Healer#rent 757,{ // item to rent NPC [email protected]_id = 7539; // rent NPC for how many days [email protected]_day = 30; [email protected] = getcharid(3); if ( $rent_aid && $rent_duration > gettimetick(2) ) { if ( $rent_aid == [email protected] ) { if ( select( "Continue","Set Healer Cost","Collect Zeny" ) == 2 ) { input $rental_cost; } else if ( @menu == 3 ) { Zeny += $rental_accumulate; dispbottom "Collected "+$rental_accumulate+" Zeny"; $rental_accumulate = 0; } } if ( $rental_cost ) { dispbottom "Healing Cost: "+$rent_cost+" Zeny"; if ( Zeny < $rent_cost ) close; Zeny -= $rental_cost; $rental_accumulate += $rental_cost; } percentheal 100,100; // your desired buff heres } else if ( countitem( [email protected]_id ) ) { mes "Rent Healer NPC ?"; mes "Rental Cost: 1 x "+getitemname( [email protected]_id ); if ( select( "Yes","No" ) == 1 ) { delitem [email protected]_id,1; $rent_aid = [email protected]; $rent_duration = gettimetick(2) + ( [email protected]_day * 86400 ); mes "NPC belong to you."; } } else { mes "NPC isnt available."; mes "Rental Cost: 1 x "+getitemname( [email protected]_id ); } close; }
  2. ok its working now, changed lua files and import them to patch files, ( Need to recheck the thor maker since some files dint extracted to correct files) and now its all good thanks guys
  3. dint work when i try @item 19508 it came out with some helm... ahh that id had been taken doing all over again unknown item......................*apple sprites* do i need to edit lua files and those num2 files? i have edited those num2 files also my ItemInfo.lua
  4. im not sure someone help me with hex my client, i will try to hex my self i will try this
  5. Hey guys i was trying to change Gold Coin ID Number 671 to Rabbit Coin with simple item info display "Rabbit Coin" but for somehow i dint even manage to do that, at 1st i follow a guide on how to add custom items, but since im just changing gold coin to rabbit coin i did some changes only to the files that will effect, so here what i did: 1. Extract idnum2itemdesctable.txt and edit 671# Rabbit Coin. Donation Coin. ^FFFFFF_^000000 Weight: ^7777770^000000 2. Extract idnum2itemdisplaynametable.txt and edit 671#Rabbit_Coin# 3. Extract num2itemdesctable.txt and edit 671# Rabbit Coin. Donation Coin. ^FFFFFF_^000000 Weight: ^7777770^000000 4. Extract num2itemdisplaynametable.txt and edit 671#Rabbit_Coin# 5. Compile all the files to .thor and upload to my patch site rabbit.ragnarok.sx/test/patch/data 6. Edit plist.txt 1 01.thor 7. Patch ! and run server, item name and display still same so google for solution..... 8. Found out it had something to do with lua files so i download a master translation and edit my : System/itemInfo.lua: [671] = { unidentifiedDisplayName = "Rabbit Coin", unidentifiedResourceName = "금화", unidentifiedDescriptionName = { "Donation Coin.", "^FFFFFF_^000000", "Weight: ^7777770^000000" }, identifiedDisplayName = "Rabbit Coin", identifiedResourceName = "금화", identifiedDescriptionName = { "Donation Coin.", "^FFFFFF_^000000", "Weight: ^7777770^000000" }, slotCount = 0, ClassNum = 0 }, 9. Still failed, my current exe are: Dec 23 2013 10. Anyone would like to help with team view add my skype : [email protected] 11. Or just tell what to do from this post Thanks for reading my problems now i need a glass of water and a pill to solve my headache
  6. http://rabbit.ragnarok.sx/ its pretty much simple, plain and clean, give me some recommendations or your opinions need better buttons...... halp?
  7. As title i would like to request a detailed step by step on how to setup flux cp donation, i have try to google for guide but i have not found any, please include how to create those paypal sandbox too thanks
  8. Can someone tell me what went wrong with my client? yesterday it was running smooth by today i got this error
  9. hello guys i have some issue here i have google for solution but it came up nothing, so here are the problem, 1. Login to account - success 2. Selecting Server - Success 3. Creating Char - Failed to communicate with server login,map and char server are online
  10. i think i will quit from trinity for some reason..... but until next month i will wait and stick around with trinity and see how does they or she improve to their low budget customers. and please DO NOT OVER ADVERTISE ! example : 1. You should try this hosting, they have 24/7 supports 2. This hoster is great they are MEGA friendly 3. Dont worry if u have some problems, they will help you out if find a good hosting sites then please let me know, just don't over advertise it
  11. ok thanks fixed, it kinda odd but those s1 and p1 are suppose to be remain there in account, and plus my char server confg was mess up typed wrong port, which im not suppose to touch it but i fix them back to default it works
  12. im not sure what happen but once i start my exe this came up? any idea how to fix? i have updated my lua and lub files with this : Master Translation forgot where did i get the files, i have disable those HKU thingy and only choose what i think i suppose to have
  13. hey guys i had some issue with my current baby server, for some unknown reason (since im noob with server side) i had this error make_connection: connect failed (socket #7, error 111: Connection refused)! can someone point me which part did i mess up? #map server and login server are up and running but char server is down
  14. hey guys im back to Ragnarok world, so im currently looking for best and cheap ro hosting, my monthly budget are 50.00 MYR roughly around 11.5845 USD DDoS protection Reliable Supports Server Ready To Play
  15. really that much? did u understand @[email protected] tried or not ? this gonna fix your problem OR it works thanks
  16. Hello guys, i got this error not sure whats the reason... im using the lates kro 2014 and 2013-08-07 ragexe and diff just that im using nemo i have 3 friends who using the same files same client and same kro they manage to get online, but not me some said my kro files are not supported wha?
  17. Hello guys got some request or suppport, i have hunting quest mission here which my friend have edited it, just to be sure could you please check the setting i really need the quest are based on the player level and the reward are for low rate server such as mine 1/1/1 oh yeah the chat box didnt work thanks. //===== rAthena Script ======================================= //= Hunting Missions //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.3a //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= Random hunting missions. //= Rewards are based on quest difficulty. //===== Additional Comments: ================================= //= 1.0 Initial script. //= 1.1 Small improvements and fixes. //= 1.2 Added party support and replaced blacklists with an //= SQL query, both thanks to AnnieRuru. //= 1.3 Re-added a blacklist adapted for the SQL query. //= 1.3a Added mission reset options. //============================================================ florian,140,152,4 script Hunting Missions 951,{ function Chk; function Cm; mes "[Hunting Missions]"; mes "Hello, "+strcharinfo(0)+"!"; if (!#Mission_Delay) { next; mes "[Hunting Missions]"; mes "I can't find any records..."; mes "You must be new here!"; emotion e_omg; next; callsub Mission_Info; emotion e_go; set #Mission_Delay,1; close; } mes rand(2)?"Working hard, as always...":"Not slacking, I hope..."; mes "Is there anything I can help"; mes "you with?"; mes " "; mes "^777777~ You've completed ^0055FF"+Mission_Total+"^777777 mission"+((Mission_Total == 1)?"":"s")+". ~^000000"; next; switch(select(((!Mission0)?" ~ New Mission::":": ~ Mission Status: ~ Abandon Mission")+": ~ Information: ~ Mission Shop: ~ View Top Hunters: ~ ^777777Cancel^000000")) { case 1: mes "[Hunting Missions]"; if (#Mission_Count) { mes "You've started a mission"; mes "on another character."; close; } if (#Mission_Delay > gettimetick(2) && .Delay) { set [email protected], #Mission_Delay-gettimetick(2); if ([email protected] > 3600) set [email protected]$, ([email protected]/3600)+" hour"+((([email protected]/3600) == 1)?"":"s"); else if ([email protected] > 60) set [email protected]$, ([email protected]/60)+" minute"+((([email protected]/60) == 1)?"":"s"); else set [email protected]$, ([email protected])+" second"+(([email protected] == 1)?"":"s"); mes "I'm afraid you'll have to wait "[email protected]$+" before taking another mission."; close; } mes "You must hunt:"; query_sql("SELECT ID FROM `mob_db` WHERE left(Sprite, 4) != 'meta' AND left(Sprite, 2) != 'E_' AND ~Mode & 32 AND EXP > 0 AND MVP1id = 0 AND DropCardid > 4000 AND DropCardid < 5000 AND ID < 2000 AND instr('"+.Blacklist$+"',ID) = 0 ORDER BY rand() LIMIT "+.Quests, [email protected]); for (set [email protected],0; [email protected]<.Quests; set [email protected],[email protected]+1) { setd "Mission"[email protected], [email protected][[email protected]]; setd "Mission"[email protected] +"_",0; } set #Mission_Count, rand(.Count[0],.Count[1]); callsub Mission_Status; next; mes "[Hunting Missions]"; mes "Report back when"; mes "you've finished."; mes "Good luck!"; close; case 2: mes "[Hunting Missions]"; mes "Mission status:"; callsub Mission_Status; close; case 3: mes "[Hunting Missions]"; mes "Do you really want to"; mes "abandon your mission?"; if (.Reset < 0 && .Delay) mes "Your delay time will not be reset."; else if (.Reset > 0) mes "It will cost "+Cm(.Reset)+" Zeny."; next; switch(select(" ~ Abandon...: ~ ^777777Cancel^000000")) { case 1: if (.Reset > 0) { if (Zeny < .Reset) { mes "[Hunting Missions]"; mes "You don't have enough"; mes "Zeny to drop this mission."; emotion e_sry; close; } set Zeny, Zeny-.Reset; emotion e_cash; } mes "[Hunting Missions]"; mes "Alright, I've dropped"; mes "your current mission."; specialeffect2 EF_STORMKICK4; for(set [email protected],0; [email protected]<.Quests; set [email protected],[email protected]+1) { setd "Mission"[email protected],0; setd "Mission"[email protected]+"_",0; } set #Mission_Count,0; if (.Reset < 0 && .Delay) set #Mission_Delay, gettimetick(2)+(.Delay*3600); close; case 2: mes "[Hunting Missions]"; mes "I knew you were kidding!"; mes "Keep up the good work."; emotion e_heh; close; } case 4: callsub Mission_Info; close; case 5: mes "[Hunting Missions]"; mes "You have ^0055FF"+#Mission_Points+"^000000 Mission Points."; mes "Use them well!"; callshop "mission_shop",1; npcshopattach "mission_shop"; end; case 6: mes "[Hunting Missions]"; mes "The top hunters are:"; query_sql("SELECT char_id AS id, (SELECT `name` FROM `char` WHERE char_id = id),`value` FROM `global_reg_value` WHERE str = 'Mission_Total' ORDER BY CAST(`value` AS SIGNED) DESC LIMIT 5",[email protected],[email protected]$,[email protected]); for(set [email protected],0; [email protected]<5; set [email protected],[email protected]+1) mes " [Rank "+([email protected]+1)+"] "+(([email protected]$[[email protected]] == "")?"^777777none":"^0055FF"[email protected]$[[email protected]]+"^000000 : ^FF0000"[email protected][[email protected]]+" pt.")+"^000000"; close; case 7: mes "[Hunting Missions]"; mes "Nothing? Okay..."; emotion e_hmm; close; } Mission_Status: set @f,0; deletearray [email protected][0], getarraysize([email protected]); for(set [email protected],0; [email protected]<.Quests; set [email protected],[email protected]+1) { set [email protected][[email protected]], getd("Mission"[email protected]); set [email protected][.Quests], [email protected][.Quests]+strmobinfo(3,[email protected][[email protected]]); set [email protected][.Quests+1], [email protected][.Quests+1]+(strmobinfo(6,[email protected][[email protected]])/(getbattleflag("base_exp_rate")/100)*.Modifier[0]); set [email protected][.Quests+2], [email protected][.Quests+2]+(strmobinfo(7,[email protected][[email protected]])/(getbattleflag("job_exp_rate")/100)*.Modifier[1]); mes " > "+Chk(getd("Mission"[email protected]+"_"),#Mission_Count)+strmobinfo(1,[email protected][[email protected]])+" ("+getd("Mission"[email protected]+"_")+"/"+#Mission_Count+")^000000"; } // Reward formulas: set [email protected]_Points, 3+([email protected][.Quests]/.Quests/6); set [email protected]_Exp, #Mission_Count*[email protected][.Quests+1]/5; set [email protected]_Exp, #Mission_Count*[email protected][.Quests+2]/5; set [email protected], #Mission_Count*.Quests*[email protected][[email protected]]*.Modifier[2]; next; mes "[Hunting Missions]"; mes "Mission rewards:"; mes " > Mission Points: ^0055FF"[email protected]_Points+"^000000"; mes " > Base Experience: ^0055FF"+Cm([email protected]_Exp)+"^000000"; mes " > Job Experience: ^0055FF"+Cm([email protected]_Exp)+"^000000"; mes " > Zeny: ^0055FF"+Cm([email protected])+"^000000"; if (@f) { set @f,0; return; } next; mes "[Hunting Missions]"; mes "Oh, you're done!"; mes "Good work."; mes "Here's your reward."; emotion e_no1; specialeffect2 EF_ANGEL; specialeffect2 EF_TRUESIGHT; set #Mission_Points, #[email protected]_Points; set BaseExp, [email protected]_Exp; set JobExp, [email protected]_Exp; set Zeny, [email protected]; for(set [email protected],0; [email protected]<.Quests; set [email protected],[email protected]+1) { setd "Mission"[email protected],0; setd "Mission"[email protected]+"_",0; } set #Mission_Count,0; if (.Delay) set #Mission_Delay, gettimetick(2)+(.Delay*3600); set Mission_Total, Mission_Total+1; if (Mission_Total == 1) query_sql("INSERT INTO `global_reg_value` (`char_id`,`str`,`value`,`type`,`account_id`) VALUES ("+getcharid(0)+",'Mission_Total','1',3,0)"); else query_sql("UPDATE `global_reg_value` SET `value` = "+Mission_Total+" WHERE char_id = "+getcharid(0)+" AND `str` = 'Mission_Total'"); close; Mission_Info: mes "[Hunting Missions]"; mes "If you so choose, I can assign"; mes "you a random hunting quest."; mes "Some are easier than others, but"; mes "the rewards increase with difficulty."; next; mes "[Hunting Missions]"; mes "Missions points are shared"; mes "amongst all your characters."; if (.Delay) mes "Delay time is, too."; mes "You can't take missions on"; mes "multiple characters at once."; next; mes "[Hunting Missions]"; mes "You can start a quest"; if (.Delay) mes "every "+((.Delay == 1)?"hour.":.Delay+" hours."); else mes "whenever you want."; mes "That's everything~"; return; function Chk { if (getarg(0) < getarg(1)) { set @f,1; return "^FF0000"; } else return "^00FF00"; } function Cm { set [email protected]$, getarg(0); for(set [email protected],getstrlen([email protected]$)-3; [email protected]>0; set [email protected],[email protected]) set [email protected]$, insertchar([email protected]$,",",[email protected]); return [email protected]$; } OnBuyItem: set @cost,0; for(set [email protected],0; [email protected]<getarraysize(@bought_nameid); set [email protected],[email protected]+1) for(set [email protected],0; [email protected]<getarraysize(.Shop); set [email protected],[email protected]+2) if (@bought_nameid[[email protected]] == .Shop[[email protected]]) { set @cost, @cost+(.Shop[[email protected]+1]*@bought_quantity[[email protected]]); break; } mes "[Hunting Missions]"; if (@cost > #Mission_Points) mes "You don't have enough Mission Points."; else { for(set [email protected],0; [email protected]<getarraysize(@bought_nameid); set [email protected],[email protected]+1) { getitem @bought_nameid[[email protected]], @bought_quantity[[email protected]]; dispbottom "Purchased "[email protected]_quantity[[email protected]]+"x "+getitemname(@bought_nameid[[email protected]])+"."; } set #Mission_Points, #[email protected]; mes "Deal completed."; emotion e_cash; } set @cost,0; deletearray @bought_nameid[0], getarraysize(@bought_nameid); deletearray @bought_quantity[0], getarraysize(@bought_quantity); close; OnNPCKillEvent: if (!getcharid(1) || !.Party) { if (!#Mission_Count || !Mission0) end; for (set [email protected], 0; [email protected]<.Quests; set [email protected],[email protected]+1) { if (strmobinfo(1,killedrid) == strmobinfo(1,getd("Mission"[email protected]))) { if (getd("Mission"[email protected]+"_") < #Mission_Count) { dispbottom "[Hunting Mission] Killed "+(set(getd("Mission"[email protected]+"_"),getd("Mission"[email protected]+"_")+1))+" of "+#Mission_Count+" "+strmobinfo(1,killedrid)+"."; end; } } } } else if (.Party) { set [email protected], killedrid; getmapxy([email protected]$,[email protected],[email protected],0); getpartymember getcharid(1),1; getpartymember getcharid(1),2; for(set [email protected],0; [email protected]<[email protected]; set [email protected],[email protected]+1) { if (isloggedin([email protected][[email protected]], [email protected][[email protected]])) { attachrid [email protected][[email protected]]; if (#Mission_Count && Mission0 && HP > 0) { getmapxy([email protected]2$,[email protected],[email protected],0); if (([email protected]$ == [email protected]$ || .Party == 1) && (distance([email protected],[email protected],[email protected],[email protected]) <= 30 || .Party < 3)) { for(set [email protected],0; [email protected]<.Quests; set [email protected],[email protected]+1) { if (strmobinfo(1,[email protected]) == strmobinfo(1,getd("Mission"[email protected]))) { if (getd("Mission"[email protected]+"_") < #Mission_Count) { dispbottom "[Hunting Mission] Killed "+(set(getd("Mission"[email protected]+"_"),getd("Mission"[email protected]+"_")+1))+" of "+#Mission_Count+" "+strmobinfo(1,[email protected])+"."; break; } } } } } } } } end; OnInit: set .Delay,24; // Quest delay, in hours (0 to disable). set .Quests,4; // Number of subquests per mission (increases rewards). set .Party,3; // Party options: 0 (exclude party kills), 1 (include party kills), 2 (same map only), 3 (screen area only) set .Reset,-1; // Reset options: -1 (abandoning mission sets delay time), 0 (no delay time), [Zeny] (cost to abandon mission, no delay time) setarray .Count[0], // Min and max monsters per subquest (increases rewards). 40,70; setarray .Modifier[0], // Multipliers for Base Exp, Job Exp, and Zeny rewards. getbattleflag("base_exp_rate")/100,getbattleflag("job_exp_rate")/100,60; setarray .Shop[0], // Reward items: <ID>,<point cost> (about 10~20 points per hunt). 512,1,513,1,514,1,538,5,539,5,558,10,561,10; set .Blacklist$, // Blacklisted mob IDs. "1062,1088,1183,1186,1200,1212,1220,1221,1234,1235,"+ "1244,1245,1250,1268,1290,1293,1294,1296,1298,1299,"+ "1300,1301,1303,1304,1305,1306,1308,1309,1311,1313,"+ "1515,1588,1618,1676,1677,1678,1679,1796,1797,1974,"+ "1975,1976,1977,1978,1979"; npcshopdelitem "mission_shop",512; for(set [email protected],0; [email protected]<getarraysize(.Shop); set [email protected],[email protected]+2) npcshopadditem "mission_shop", .Shop[[email protected]], .Shop[[email protected]+1]; end; waitingroom "Hunting Mission",0; end; } - shop mission_shop -1,512:-1 Srry had to use Free title coz ppl usually jump on free stuff thread
  18. found it it was the vote for point lang, it just have the vote translation that all so i had to add all the original text from original flux and add the vote lang in it
  19. should i add lang at web/cp or web/cp/theme? i have add lang to cp but still same problem
×
×
  • Create New...

Important Information

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