Jump to content

Kido

Members
  • Posts

    1445
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by Kido

  1. hahaha so enthusiast haha happy new year there, here in north mexico lefts 3 hours and 16min happy new year KamiShi ;3
  2. amigo soy de mexico, aca si algo puede salir mal, sale peor xDDDDDD pero enserio gracia spor la guia, un dia que sean mas eticos y parejos (justos con todos xD) me animo ;D
  3. huh Annie did it o: thanks Annie o:! lol sorry i didn't read the second post of yours Mau, where you specify the acces and ids and items x_x sorry D:! i made the script only based on the first post so sorry DDDD:! well, anyway, Annie ended it with short and best results, you are on the best hands with her when she does script lol here is my script made with only menu options, eveyrone will laught/cry about this lol prontera,156,174,5 script Rental Guy 822,{ mes "Hello, i can exchange your tickets for rentals and or expand the time of your rental item"; mes "However, i can only do it for 1 day per ticket with a limit of 10 tickets or 10 days"; next; mes "Firstly, please select how many days do you wish to expand your item, if you want to expand, if not select the last option."; mes "Note, tickets will be deleted on selection so please pick wise, also note that to expand the duration of an item you will need the item with you"; next; menu "1 day",L_1,"2 days",L_2,"3 days",L_3,"4 days",L_4,"5 days",L_5,"6 days",L_6,"7 days",L_7,"8 days",L_8,"9 days",L_9,"10 days",L_10,"Rent an item for first time",L_rent,"cancel",L_cancel; next; L_1: if(countitem(7711)<1)goto no_item; delitem 7711,1; mes "Allright, now select an item"; menu "Sleipnir",L_S1,"Meginghard",L_M1,"Asprika",L_A1,"Brisingamen",L_B1,"Mjolnir",L_Mj1; next; L_S1: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,86400; next; close; L_M1: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,86400; next; close; L_A1: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,86400; next; close; L_B1: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,86400; next; close; L_Mj1: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,86400; next; close; L_2: if(countitem(7711)<2)goto no_item; delitem 7711,2; mes "Allright, now select an item"; menu "Sleipnir",L_S2,"Meginghard",L_M2,"Asprika",L_A2,"Brisingamen",L_B2,"Mjolnir",L_Mj2; next; L_S2: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,172800; next; close; L_M2: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,172800; next; close; L_A2: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,172800; next; close; L_B2: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,172800; next; close; L_Mj2: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,172800; next; close; L_3: if(countitem(7711)<3)goto no_item; delitem 7711,3; mes "Allright, now select an item"; menu "Sleipnir",L_S3,"Meginghard",L_M3,"Asprika",L_A3,"Brisingamen",L_B3,"Mjolnir",L_Mj3; L_S3: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,259200; next; close; L_M3: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,259200; next; close; L_A3: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,259200; next; close; L_B3: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,259200; next; close; L_Mj3: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,259200; next; close; L_4: if(countitem(7711)<4)goto no_item; delitem 7711,4; mes "Allright, now select an item"; menu "Sleipnir",L_S4,"Meginghard",L_M4,"Asprika",L_A4,"Brisingamen",L_B4,"Mjolnir",L_Mj4; next; L_S4: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,345600; next; close; L_M4: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,345600; next; close; L_A4: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,345600; next; close; L_B4: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,345600; next; close; L_Mj4: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,345600; next; close; L_5: if(countitem(7711)<5)goto no_item; delitem 7711,5; mes "Allright, now select an item"; menu "Sleipnir",L_S5,"Meginghard",L_M5,"Asprika",L_A5,"Brisingamen",L_B5,"Mjolnir",L_Mj5; next; L_S5: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,432000; next; close; L_M5: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,432000; next; close; L_A5: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,432000; next; close; L_B5: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,432000; next; close; L_Mj5: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,432000; next; close; L_6: if(countitem(7711)<6)goto no_item; delitem 7711,6; mes "Allright, now select an item"; menu "Sleipnir",L_S6,"Meginghard",L_M6,"Asprika",L_A6,"Brisingamen",L_B6,"Mjolnir",L_Mj6; next; L_S6: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,518400; next; close; L_M6: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,518400; next; close; L_A6: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,518400; next; close; L_B6: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,518400; next; close; L_Mj6: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,518400; next; close; L_7: if(countitem(7711)<7)goto no_item; delitem 7711,7; mes "Allright, now select an item"; menu "Sleipnir",L_S7,"Meginghard",L_M7,"Asprika",L_A7,"Brisingamen",L_B7,"Mjolnir",L_Mj7; next; L_S7: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,604800; next; close; L_M7: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,604800; next; close; L_A7: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,604800; next; close; L_B7: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,604800; next; close; L_Mj7: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,604800; next; close; L_8: if(countitem(7711)<8)goto no_item; delitem 7711,8; mes "Allright, now select an item"; menu "Sleipnir",L_S8,"Meginghard",L_M8,"Asprika",L_A8,"Brisingamen",L_B8,"Mjolnir",L_Mj8; next; L_S8: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,691200; next; close; L_M8: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,691200; next; close; L_A8: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,691200; next; close; L_B8: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,691200; next; close; L_Mj8: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,691200; next; close; L_9: if(countitem(7711)<9)goto no_item; delitem 7711,9; mes "Allright, now select an item"; menu "Sleipnir",L_S9,"Meginghard",L_M9,"Asprika",L_A9,"Brisingamen",L_B9,"Mjolnir",L_Mj9; next; L_S9: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,777600; next; close; L_M9: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,777600; next; close; L_A9: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,777600; next; close; L_B9: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,777600; next; close; L_Mj9: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,777600; next; close; L_10: if(countitem(7711)<10)goto no_item; delitem 7711,10; mes "Allright, now select an item"; menu "Sleipnir",L_S0,"Meginghard",L_M0,"Asprika",L_A0,"Brisingamen",L_B0,"Mjolnir",L_Mj0; next; L_S0: if(countitem(2410)<1)goto no_equip; delitem 2410,1; rentitem 2410,864000; next; close; L_M0: if(countitem(2629)<1)goto no_equip; delitem 2629,1; rentitem 2629,864000; next; close; L_A0: if(countitem(2541)<1)goto no_equip; delitem 2541,1; rentitem 2541,864000; next; close; L_B0: if(countitem(2630)<1)goto no_equip; delitem 2630,1; rentitem 2630,864000; next; close; L_Mj0: if(countitem(1530)<1)goto no_equip; delitem 1530,1; rentitem 1530,864000; next; close; no_item: mes "Huh trying to fool me?"; mes "you don't have sufficent tickets."; mes "Sorry i can't refund any ticket."; close; no_equip: mes "Sorry but seems that you don't even have the correct equip"; mes "First get it and then we may talk"; close; L_cancel: mes "Allright don't worry, come to me any time"; close; L_rent: mes "Allright, select an item to rent for first time and how many days"; mes "Note, on selection the ticket will be deleted, so please pick wise"; mes "Remember, for each day you will need a ticket"; menu "1 Day",L_n1,"2 Days",L_n2,"3 Days",L_n3,"4 Days",L_n4,"5 Days",L_n5,"6 Days",L_n6,"7 Days",L_n7,"8 Days",L_n8,"9 Days",L_n9,"10 Days",L_n10,"Cancel",L_cancel; next; L_n1: if(countitem(7711)<1)goto no_item; delitem 7711,1; mes "Allright, now select an item"; menu "Sleipnir",L_nSs1,"Meginghard",L_nMm1,"Asprika",L_nAa1,"Brisingamen",L_nBb1,"Mjolnir",L_nMmj1; next; L_nSs1: rentitem 2410,86400; next; close; L_nMm1: rentitem 2629,86400; next; close; L_nAa1: rentitem 2541,86400; next; close; L_nBb1: rentitem 2630,86400; next; close; L_nMmj1: rentitem 1530,86400; next; L_n2: if(countitem(7711)<2)goto no_item; delitem 7711,2; mes "Allright, now select an item"; menu "Sleipnir",L_nSs2,"Meginghard",L_nMm2,"Asprika",L_nAa2,"Brisingamen",L_nBb2,"Mjolnir",L_nMmj2; next; L_nSs2: rentitem 2410,172800; next; close; L_nMm2: rentitem 2629,172800; next; close; L_nAa2: rentitem 2541,172800; next; close; L_nBb2: rentitem 2630,172800; next; close; L_nMmj2: rentitem 1530,172800; next; close; L_n3: if(countitem(7711)<3)goto no_item; delitem 7711,3; mes "Allright, now select an item"; menu "Sleipnir",L_nSs3,"Meginghard",L_nMm3,"Asprika",L_nAa3,"Brisingamen",L_nBb3,"Mjolnir",L_nMmj3; L_nSs3: rentitem 2410,259200; next; close; L_nMm3: rentitem 2629,259200; next; close; L_nAa3: rentitem 2541,259200; next; close; L_nBb3: rentitem 2630,259200; next; close; L_nMmj3: rentitem 1530,259200; next; close; L_n4: if(countitem(7711)<4)goto no_item; delitem 7711,4; mes "Allright, now select an item"; menu "Sleipnir",L_nSs4,"Meginghard",L_nMm4,"Asprika",L_nAa4,"Brisingamen",L_nBb4,"Mjolnir",L_nMmj4; next; L_nSs4: rentitem 2410,345600; next; close; L_nMm4: rentitem 2629,345600; next; close; L_nAa4: rentitem 2541,345600; next; close; L_nBb4: rentitem 2630,345600; next; close; L_nMmj4: rentitem 1530,345600; next; close; L_n5: if(countitem(7711)<5)goto no_item; delitem 7711,5; mes "Allright, now select an item"; menu "Sleipnir",L_nSs5,"Meginghard",L_nMm5,"Asprika",L_nAa5,"Brisingamen",L_nBb5,"Mjolnir",L_nMmj5; next; L_nSs5: rentitem 2410,432000; next; close; L_nMm5: rentitem 2629,432000; next; close; L_nAa5: rentitem 2541,432000; next; close; L_nBb5: rentitem 2630,432000; next; close; L_nMmj5: rentitem 1530,432000; next; close; L_n6: if(countitem(7711)<6)goto no_item; delitem 7711,6; mes "Allright, now select an item"; menu "Sleipnir",L_nSs6,"Meginghard",L_nMm6,"Asprika",L_nAa6,"Brisingamen",L_nBb6,"Mjolnir",L_nMmj6; next; L_nSs6: rentitem 2410,518400; next; close; L_nMm6: rentitem 2629,518400; next; close; L_nAa6: rentitem 2541,518400; next; close; L_nBb6: rentitem 2630,518400; next; close; L_nMmj6: rentitem 1530,518400; next; close; L_n7: if(countitem(7711)<7)goto no_item; delitem 7711,7; mes "Allright, now select an item"; menu "Sleipnir",L_nSs7,"Meginghard",L_nMm7,"Asprika",L_nAa7,"Brisingamen",L_nBb7,"Mjolnir",L_nMmj7; next; L_nSs7: rentitem 2410,604800; next; close; L_nMm7: rentitem 2629,604800; next; close; L_nAa7: rentitem 2541,604800; next; close; L_nBb7: rentitem 2630,604800; next; close; L_nMmj7: rentitem 1530,604800; next; close; L_n8: if(countitem(7711)<8)goto no_item; delitem 7711,8; mes "Allright, now select an item"; menu "Sleipnir",L_nSs8,"Meginghard",L_nMm8,"Asprika",L_nAa8,"Brisingamen",L_nBb8,"Mjolnir",L_nMmj8; next; L_nSs8: rentitem 2410,691200; next; close; L_nMm8: rentitem 2629,691200; next; close; L_nAa8: rentitem 2541,691200; next; close; L_nBb8: rentitem 2630,691200; next; close; L_nMmj8: rentitem 1530,691200; next; close; L_n9: if(countitem(7711)<9)goto no_item; delitem 7711,9; mes "Allright, now select an item"; menu "Sleipnir",L_nSs9,"Meginghard",L_nMm9,"Asprika",L_nAa9,"Brisingamen",L_nBb9,"Mjolnir",L_nMmj9; next; L_nSs9: rentitem 2410,777600; next; close; L_nMm9: rentitem 2629,777600; next; close; L_nAa9: rentitem 2541,777600; next; close; L_nBb9: rentitem 2630,777600; next; close; L_nMmj9: rentitem 1530,777600; next; close; L_n10: if(countitem(7711)<10)goto no_item; delitem 7711,10; mes "Allright, now select an item"; menu "Sleipnir",L_nSs0,"Meginghard",L_nMm0,"Asprika",L_nAa0,"Brisingamen",L_nBb0,"Mjolnir",L_nMmj0; next; L_nSs0: rentitem 2410,864000; next; close; L_nMm0: rentitem 2629,864000; next; close; L_nAa0: rentitem 2541,864000; next; close; L_nBb0: rentitem 2630,864000; next; close; L_nMmj0: rentitem 1530,864000; next; close; OnInit: waitingroom "Rentals",0; end; } i totally suugest you to use AnnieRuru's script, the one that is over this post lol well Mau, i hope your request is satisfied (which i assume it is lol) hope see you around here on the community, always ask for help if you need again, cya !
  4. hey don't worry pal i'm not the great scripter you know, gonna think/work on it i will try to, smile up (:
  5. oh thank you so much o:! °lollollol huh npc shop, allright o:gonna play over itsince i'm not too sure how exactlyto implement it o:
  6. LOL la mitad de las donaciones, se joda xd eso si, muy buena guia, gracias +1
  7. your script "eibroch" but inside db\map_index.txt says einbroch check the spelling ? you mean like making a ladder ? didn't see it -___________- i was more focused on the script rather than the spelling of the maps lol thank you yeah, players are not getting mvp points or something, no message at all thanks again Annie
  8. what's the error that your emulator shows? ss?
  9. 3956 lol more than 300 posts and can't go out of Stapo a_a
  10. Hello i have a script that makes mvps invade citys at by a rando chance it works fine until the city is einbroch always that the invasion starts at einbroch, no mvp is summoned there what could be? thanks in advance - script mvpinis -1,{ OnInit: setarray .Map$[0],"prontera","morocc","geffen","payon","alberta","aldebaran","xmas","comodo","yuno","amatsu","gonryun","umbala","louyang","ayothaya","eibroch","hugel","rachel","veins","moscovia"; setarray .MVP[0],1511,1785,1630,2320,1039,1272,1719,1389,1115,1418,1252,1086,1885,1492,1734,1251,1688,2156,1373,1147,1087,1190,1038,1157,1159,1623,1583,1312,1685,1658; end; OnHour00: OnHour08: OnHour16: killmonster .Map$[ .RandMap ],"All"; set .RandMap,rand( getarraysize( .Map$ ) ); for(set .@i,0; .@i<getarraysize(.MVP); set .@i,.@i+1){ monster .Map$[ .RandMap ],0,0,"MVP Event",.MVP[ .@i ],1,strnpcinfo(0)+"::OnKilled"; } announce "Invasion MvP : lol mvp monster have invaded "+.Map$[ .RandMap ]+" save the city or the city will perish!! ",0; end; OnKilled: announce "Invasion MvP : Someone killed a mvp at "+.Map$[ .RandMap ]+" keep defending!!! ",0; set mvp_point, mvp_point + 1;// +1 mvp point end; } thank you guys in advance!
  11. hm haven't tested them, well that sounds like a lua problema, try to use them without changing the names, then test one by one and see if you can change their name or not, i guess you can, i'm almost sure that you did wrong a step D:
  12. lol consult here http://rathena.org/wiki/Custom_Mobs
  13. huh good luck, i can't even see npcs now, i guess it's about the client x_x
  14. Hmm Kido this is happening on a Fresh Installation. no Ftp no anything. yeah huh i came to think that it may be the luas ?
  15. yeah, i hope more ppl will at least try next time, even if they don't have the skills at all, i liked so much the event (:
  16. so cool you released for free o:!!!!! gonna adapt it to my fluxcp, thanks you so much :DDD!
  17. huh all i know about items disappearing is that when you save an edit on your ftp to the item_db.txt or item_db2.txt and then you use @reloaditemdb before the ftp ends editing (before it reaches 100% of saving changes) all of the items affected on the txt document won't be visible, the only solution for that is to make again any change and save the txt file, once is totally saved, use @reloaditemdb and that will make it i know, this error sounds pretty different, but that's the only thing i know about it, sorry if isn't helpful at all hope you solve it, good luck!
  18. lol of course it matters if he want to have more ppl participating on the events and i said that because he was not too "content" with the amount of ppl who participated i didn't say that i didn't enjoyed the event huh yeah that can be enought for you and for some ppl too, but what he said at the end in other words was that he would like to see more ppl participaing don't take a bad idea of what i said D:! xd huh there a lot of different events for forums that doesn't require ppl to have specific skills, you can google it if you wish, you onlye need some imagination or think a bit different and you'll have a lot of good ideas members can leave ideas too, i guess, this is not merely 100% staff job i hope, so if you are common member (that isn't part of the staff/donators) and have ideas, i guess you can leave them somewhere on the forum or just pm a staff member well xd cya 'till next time! (next post answer xd)
  19. lol, told you, the event it's up to only ppl who can script, all other members who can't script at all will not/can't participate the event was cool, i like it and i'm sure many more did, but if ya want more ppl to participate next time, you should think in an event that doesn't require ppl specific skills to do well, congrats goddamit xd !
  20. oh allright o: kinda riskie x_x thanks, gonna try it o:
  21. well huh i right clicked and selected "apply patch" and then a window appeared with all documents that would suffer changes by clickng save, that changes will apply to that documenst without having to do it manually o:?
  22. huh @_@ allright o: i opened the patch and this appeared db/const.txt | 1 + src/map/map.c | 1 + src/map/map.h | 1 + src/map/mob.c | 4 ++++ src/map/npc.c | 6 ++++++ src/map/pc.c | 2 +- src/map/script.c | 6 +++++- 7 files changed, 19 insertions(+), 2 deletions(-) diff --git a/db/const.txt b/db/const.txt index d31c105..77c622d 100644 --- a/db/const.txt +++ b/db/const.txt @@ -379,6 +379,7 @@ mf_nomineeffect 57 mf_nolockon 58 mf_notomb 59 mf_skill_damage 60 +mf_droprate 61 //'setcell' types cell_walkable 0 diff --git a/src/map/map.c b/src/map/map.c index a0562df..839e694 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3081,6 +3081,7 @@ void map_flags_init(void) map[i].nocommand = 0; // nocommand mapflag level map[i].adjust.bexp = 100; // per map base exp multiplicator map[i].adjust.jexp = 100; // per map job exp multiplicator + map[i].adjust.droprate = 100; // per map job exp multiplicator memset(map[i].drop_list, 0, sizeof(map[i].drop_list)); // pvp nightmare drop list // skill damage diff --git a/src/map/map.h b/src/map/map.h index 3e44813..f14f6ee 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -618,6 +618,7 @@ struct map_data { struct { int jexp; // map experience multiplicator int bexp; // map experience multiplicator + int droprate; // map droprate multiplicator #ifdef ADJUST_SKILL_DAMAGE struct s_skill_damage damage; #endif diff --git a/src/map/mob.c b/src/map/mob.c index ad5c387..f0f7b47 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2401,6 +2401,10 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) drop_rate = 1; } #endif + + if ( map[m].adjust.droprate ) + drop_rate = drop_rate * map[m].adjust.droprate / 100; + // attempt to drop the item if (rnd() % 10000 >= drop_rate) continue; diff --git a/src/map/npc.c b/src/map/npc.c index cb17f84..bd16eea 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -3634,6 +3634,12 @@ static const char* npc_parse_mapflag(char* w1, char* w2, char* w3, char* w4, con if( map[m].adjust.bexp < 0 ) map[m].adjust.bexp = 100; map[m].flag.nobaseexp = (map[m].adjust.bexp==0)?1:0; } + else if (!strcmpi(w3,"droprate")) { + map[m].adjust.droprate = (state) ? atoi(w4) : 100; + if( map[m].adjust.droprate < 0 ) map[m].adjust.droprate = 100; + map[m].flag.nomobloot = ( map[m].adjust.droprate== 0 )? 1:0; + map[m].flag.nomvploot = ( map[m].adjust.droprate== 0 )? 1:0; + } else if (!strcmpi(w3,"loadevent")) map[m].flag.loadevent=state; else if (!strcmpi(w3,"nochat")) diff --git a/src/map/pc.c b/src/map/pc.c index bcc468e..c9d9795 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4750,7 +4750,7 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl, uint16 skil } // base skill success chance (percentual) - rate = (sd_status->dex - md_status->dex)/2 + skill_lv*6 + 4; + rate = ( (sd_status->dex - md_status->dex)/2 + skill_lv*6 + 4 ) * map[sd->bl.m].adjust.droprate / 100; rate += sd->bonus.add_steal_rate; if( rate < 1 ) diff --git a/src/map/script.c b/src/map/script.c index 68551cd..3ac96ef 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -417,7 +417,8 @@ enum { MF_NOMINEEFFECT, MF_NOLOCKON, MF_NOTOMB, - MF_SKILL_DAMAGE //60 + MF_SKILL_DAMAGE, //60 + MF_DROPRATE }; const char* script_op2name(int op) @@ -10894,6 +10895,7 @@ static int buildin_addrid_sub(struct block_list *bl,va_list ap) case MF_NOMINEEFFECT: script_pushint(st,map[m].flag.nomineeffect); break; case MF_NOLOCKON: script_pushint(st,map[m].flag.nolockon); break; case MF_NOTOMB: script_pushint(st,map[m].flag.notomb); break; + case MF_DROPRATE: script_pushint(st,map[m].adjust.droprate); break; #ifdef ADJUST_SKILL_DAMAGE case MF_SKILL_DAMAGE: { @@ -11017,6 +11019,7 @@ static int script_mapflag_pvp_sub(struct block_list *bl,va_list ap) { case MF_NOMINEEFFECT: map[m].flag.nomineeffect = 1 ; break; case MF_NOLOCKON: map[m].flag.nolockon = 1 ; break; case MF_NOTOMB: map[m].flag.notomb = 1; break; + case MF_DROPRATE: map[m].adjust.droprate = (val <= 0) ? 100 : val; break; #ifdef ADJUST_SKILL_DAMAGE case MF_SKILL_DAMAGE: { @@ -11128,6 +11131,7 @@ static int script_mapflag_pvp_sub(struct block_list *bl,va_list ap) { case MF_NOMINEEFFECT: map[m].flag.nomineeffect = 0 ; break; case MF_NOLOCKON: map[m].flag.nolockon = 0 ; break; case MF_NOTOMB: map[m].flag.notomb = 0; break; + case MF_DROPRATE: map[m].adjust.droprate = 0; break; #ifdef ADJUST_SKILL_DAMAGE case MF_SKILL_DAMAGE: { so i just need to make those changes to my server, then recompile and that's all o:? i don't have git, i still use svn, i got in a big truble switching to git so i just keep the svn thing x_x i understand that the minus means remove and the plus means add, but what does mean the @@ ? thanks again o:
×
×
  • Create New...