Jump to content

Alexandrite

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by Alexandrite

  1. this is example of my currently use OnInit: waitingroom "Waiting Room",20,"Peter S. Alberto#job_league::OnStartArena",1; enablewaitingroomevent; end; OnStartArena: warpwaitingpc "job_prist$",24,44; attachrid $@warpwaitingpc; if (BaseJob == Job_Priest) { goto OnStart; }else if(BaseJob == Job_Acolyte){ donpcevent "Zombie_Generator#job_league::OnEnable"; } disablewaitingroomevent; end; OnStart: enablewaitingroomevent; end; This Code is worked... But it's wrong order because this code already trigger after you got trigger "warpwaitingnpc" and then you "attachrid" later I would like to make a room condition right after they enter the chatroom as if when you enter the room if(BaseJob == Job_Priest) or if(BaseJob == Job_Acolyte) or if(BaseJob == XXXX) I mean I want it check in the begining of when player enter the ChatRoom And I would like command to click the player that not met condition out of that Room too Is it possible ? I mean i want to make a room that people who met Condition only who can enter ? Thank you and sorry for my bad endlish
  2. here it's my script, but this script is work as individual and work as the last killed function script get_special_item { set .@item_id, getarg(0); set .@chance, getarg(1); set .@rand, rand(1, 10000); if(getstatus( SC_ITEMBOOST, 0 )){ .@chance = .@chance*2; } if(.@rand <= .@chance) { getitem .@item_id, 1; } //dispbottom .@rand+"/"+.@chance; return; } // Number Format //============================================================ function script number_format { set .@str$, getarg(0); for(set .@i,getstrlen(.@str$)-3; .@i>0; set .@i,.@i-3) set .@str$, insertchar(.@str$,",",.@i); return .@str$; } OnNPCKillEvent: // 2 : Mob Name , 3 : Mob Lv //announce "OnNPCKillEvent : "+ strmobinfo(2, killedrid),bc_all,0xFFFF00; //announce "OnNPCKillEvent : "+ strmobinfo(3, killedrid),bc_all,0xFFFF00; //announce "OnNPCKillEvent : "+ JobLevel,bc_all,0xFFFF00; //.@Point = rand(BaseLevel/2, BaseLevel)+rand(JobLevel/2, JobLevel)+(rand(strmobinfo(3, killedrid)/2, strmobinfo(3, killedrid))); .@Point = 1+rand((strmobinfo(3, killedrid)/2), strmobinfo(3, killedrid)) + rand(strmobinfo(7, killedrid)/5, strmobinfo(7, killedrid)/(9/2)); .@Point$ = callfunc("number_format", .@Point); #CASHPOINTS = #CASHPOINTS+.@Point; dispbottom "ได้รับ "+.@Point$+" พอยท์ คงเหลือ "+callfunc("number_format", #CASHPOINTS)+" พอยท์"; //for(.@i=0, .@i<10000; .@i++){ callfunc("get_special_item", 14533, 1); // Battle Manual callfunc("get_special_item", 14592, 1); // Job Battle Manual callfunc("get_special_item", 12210, 1); // Bubble Gum callfunc("get_special_item", 12209, 1); // Life Insurance callfunc("get_special_item", 12075, 1); // STR+10 Food callfunc("get_special_item", 12090, 1); // AGI+10 Food callfunc("get_special_item", 12085, 1); // VIT+10 Food callfunc("get_special_item", 12080, 1); // INT+10 Food callfunc("get_special_item", 12095, 1); // DEX+10 Food callfunc("get_special_item", 12100, 1); // LUK+10 Food callfunc("get_special_item", 12122, 1); // HIT Food callfunc("get_special_item", 12123, 1); // FLEE Food callfunc("get_special_item", 12124, 1); // ATK Food callfunc("get_special_item", 984, 1); // Oridecon callfunc("get_special_item", 985, 1); // Elunium // sleep2 1; //} end; But I would like it's work like a party loop or something I mean assume I just kill 1 monster then let OnNPCKillEvent just work but the script just check if I in party or not and if yes let make this script loop and work for the whole party or what i mean i would like everyone in party have the same chance of getting special item drop by doesn't care who's the one that killed monster, no matter who kill, whole party get the same chance is it possible ? from my opinion i think it's possible but i don't know how to make script it work > <"
  3. Like a Red Potion is 50z if you write selling npc as 501:-1 NPC would sell it at 50z but i would like NPC to sell it at 25z what code should I write? without directly put 25 Or do I need to Source Mod?
  4. Like the title said, Exclusive to store only Costume Item, Can't store another type item, is that possible? I'm not sure this topic is in the right place, because I'm not sure if this suppose to be Script or Source Mode
  5. example as if I was knight is there a way to make an equip costume that make me look like a Lord Knight or another class?
  6. OMG! and I thought I already lost hope, Thank you so much for finding it and clarify to me, it help me so much ^ ^ It worked now, like a Magic! I'm so appreciated your support!!!
  7. Can anyone help me , I want to restore msgstringtable.txt line 484 (%d)# it's show amount of Player Currenly Online In the server after server name
  8. due to Ragexe Client now no longer show Player Online Count, and I don't know which server or client that i should fix If anyone know how to mod the client to show the Player Online Count after server name, I'm appreciate it. But if it have to do with the source, right now i'm at here src/char/char_logif.cpp around the line 777 I change from //memcpy(WFIFOP(login_fd,60), charserv_config.server_name, 20); Sql_Query(sql_handle, "SELECT count(`char_id`) FROM `char` WHERE `online`>0"); char result[50]; sprintf(result, "%s(%d)", charserv_config.server_name, sql_handle); memcpy(WFIFOP(login_fd,60), result, 20); But it won't work and I don't know how to make it happend , can anyone help me please?
  9. Thank you, but I mean mag_dun just an example, I want all the maps Like prt_fild moc_fild pay_dun all I mean an entire mobs folder fields/dungeons
  10. there used to be accurated amount of monster spawn file in the past from my knowledge but after 10-15 years pass most of file all vanish, and what left is most likely the monster spawn that i found it most likely get edit on the monster spawn amount so i don't sure if the amount is true anymore
  11. I try to find accurate source, right now i already have Mobs for 5.0 (before 6.0) and i try to compare it to the old book and i found out the Monster type on each maps are all accurated but what I'm not sure is Monster amount, I mean i got the mob spawn for eathena 5.0 (from thailand) some source i look inside the mob spawn folder and found out that on a different source there are not equal amount of mob spawn some map have amount of monster more than reality like what i found out Magma dungeon I found out that Kaho is put inside mag dungeon after 5.0 , but I have to put it in ro 5.0 too, otherwise you can't find Kaho anywhere but the point is this Source that i found it's Lava golem 33 Blazer 50 etc. But when i go test in the map monster is far too much to be real and i have the old book and i compare it to the book info from the book it said amount lower
  12. I want the old (players online) like (1) like in the old past
  13. sorry how to mark as solved? yeah it's solved
  14. OMG! Thank you so much remove custom shops too , right?
  15. Docs Script_commands.txt ** Define a shop/cashshop/itemshop/pointshop NPC. -%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>{,discount},<itemid>:<price>{,<itemid>:<price>...} <map name>,<x>,<y>,<facing>%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>{,discount},<itemid>:<price>{,<itemid>:<price>...} -%TAB%cashshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...} <map name>,<x>,<y>,<facing>%TAB%cashshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...} -%TAB%itemshop%TAB%<NPC Name>%TAB%<sprite id>,<costitemid>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} <map name>,<x>,<y>,<facing>%TAB%itemshop%TAB%<NPC Name>%TAB%<sprite id>,<costitemid>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} -%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} <map name>,<x>,<y>,<facing>%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} <map name>,<x>,<y>,<facing>%TAB%marketshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>:<stock>{,<itemid>:<price>:<stock>...} Well I think everything are right, but it's all become apple even the example script from rathena
  16. I open rathena /npc /merchants / cash_trader.txt payon,171,142,4 cashshop Kafra Shop Employee 116,12900:1000,12901:200,12902:1000,12909:100,12910:100,12911:1500,12922:150,7619:100,7620:100,12916:150,12917:150,12915:100,12918:100,12913:125,12914:125,13553:50,12903:100,12904:100,12905:100,12906:100,12907:100,12908:100,7776:50 But it's show only 1st item after that all become apple with big number
  17. I try script below every on loadevent work except OnPCLoadMapEvent - script OnPCEvents -1,{ OnPCLoadMapEvent: announce "OnPCLoadMapEvent",bc_all,0xFFFF00; end; OnPCBaseLvUpEvent: announce "OnPCBaseLvUpEvent",bc_all,0xFFFF00; end; OnPCJobLvUpEvent: announce "OnPCJobLvUpEvent",bc_all,0xFFFF00; end; OnPCKillEvent: announce "OnPCKillEvent",bc_all,0xFFFF00; end; OnNPCKillEvent: announce "OnNPCKillEvent",bc_all,0xFFFF00; end; OnPCDieEvent: sc_end sc_all; announce "OnPCDieEvent",bc_all,0xFFFF00; end; OnPCLoginEvent: announce "OnPCLogin",bc_all,0xFFFF00; end; OnPCLogoutEvent: atcommand "@monster poring 1 "+strcharinfo(0); end; }
  18. and I try to name lhz_dun04 as lhz_dun04-l I have an idea of league map and standard map in my server but when i do mapcache it said it's name longer than 12 so i have to cut out the l
  19. I want to max 2 instance of each map and when I do I got message [Error]: (mapindex_add) Map index (2000) for "lhz_dun04-" out of range (max is 2000) I already check in the common\mmo.hp it's said MAX_MAP_PER_SERVER 1500 while it actually 2000 and i change it to 3000 and recompile but nothing happend Can anyone give me some help to increase mapindex_add range?
  20. I don't know how to explain, let me says some example there 2 account account 1 have 3 characters 1.Alexandrite 2.Alexandria 3.AlexanZero and account 2 have 1 characters 1.Altima So basically Altima knowing Alexandrite but today Alexandrite is playing character Alexandria So if Altima whisper to Alexandrite normally it would says Alexandrite is not Online But I want it to redirect to Alexandria automatically Or Another word no matter account 1 play on any Character Altima can type any name on 3 name above if he's online they will redirect whisper message to that character of that account? I'm not sure if anyone understand it and yeah... if possible I would like when Register as a Friends is equally register as account instead of just Name example again like if Altima add friend with Alexandrite when Altima open Friend list Altima should see AlexanZero (account1) Altima now know Alexandrite playing on AlexanZero and know that AlexanZero ID is account 1 too
  21. I put script_constants.hpp export_constant(SC_INCREASEAGI); export_constant(SC_INCREASEAGI_CASH); then I got But then my server crash my Sc_DATA
  22. I didn't miss anything .... still put me in stone well I'm doing INCREASEAGI btw...
  23. I did that and it just made my character "stone" :V @pajodex
×
×
  • Create New...