Jump to content

Recommended Posts

Posted (edited)

Maybe I'm bringing owls to Athens, but if it helped anyone...

 

Ignore the [drop] section, it's my custom event drop system (percent, not korea based), just use droptime_... variables OR look down below the settings (if you're experienced)


[coretimeteleport]
eventperiod = 2006/08/15-00:01 ~ 2010/12/31-23:59
coretime = 20:0 ~ 23:59
priceratio = 50
dayoption = 1 ~ 5

[PCCafeCouponEvent]
EventPeriod = 2006/08/15-00:01 ~ 2010/12/31-23:59
EventAddedPeriod = 2006/08/15-00:01 ~ 2010/12/31-23:59
EventOrdinal = 0
coupon_item_info = 0

[XmasSantaEvent]
EventPeriod = 2006/08/14-00:01 ~ 2010/12/31-23:59
;EventPeriod = 2016/05/25-00:00 ~ 2016/06/29-23:59
buff_id_count = 1
buff_id1 = 78905346
delay_time = 30

[YearCatchEvent]
EventPeriod = 2006/08/14-00:01 ~ 2010/12/31-23:59
delay_time = 30

; FIREWORKS

;[event] 
;eventname = fireworks_event 
;eventnpcname = fire_event 
;flagsettingtime = 120000
;event_doing = 1 
;dropitem_count = 0
;droptime_count = 0
;npctime_count = 1
;npctime0= 2016/05/25-00:00 ~ 2016/06/29-23:59
;timevariable_count = 0

;[npcsetting] 
;npcsetting_count = 1
;npceventname0 = fire_event

;[drop]
;maxleveldifference = 8
;count = 3
;item0 = 6403
;chance0 = 5.0
;item1 = 6404
;chance1 = 4.0
;item2 = 6405
;chance2 = 1.0


; CHRISTMASS [trees, agathion]

;[event]
;eventname = christmas
;eventnpcname = christmas
;flagsettingtime = 120000
;event_doing = 1
;dropitem_count = 0
;droptime_count = 0
;npctime_count = 1
;npctime0 = 2016/05/25-00:00 ~ 2016/06/29-23:59
;timevariable_count = 0

;[npcsetting] 
;npcsetting_count = 1
;npceventname0 = christmas

;[drop]
;maxleveldifference = 8
;count = 4
;item0 = 5556
;chance0 = 6.0
;item1 = 5557
;chance1 = 6.0
;item2 = 5558
;chance2 = 15.0
;item3 = 5559
;chance3 = 3.0


; CHRISTMASS [turkey]

;[event]
;eventname = br_xmas_event
;eventnpcname = br_xmas_event
;flagsettingtime = 600000
;event_doing = 1
;dropitem_count = 0
;droptime_count = 1
;droptime0 = 2016/05/25-00:00 ~ 2016/06/29-23:59
;npctime_count = 1
;npctime0 = 2016/05/25-00:00 ~ 2016/06/29-23:59
;timevariable_count = 0



; PIG EVENT

;[event]
;eventname = event_mutant_pig
;eventnpcname = event_mutant_pig
;flagsettingtime = 600000
;event_doing = 1
;dropitem_count = 0
;droptime_count = 0
;npctime_count = 9
;npctime0 = 2016/06/11-20:00 ~ 2016/06/11-23:00
;npctime1 = 2016/06/12-16:00 ~ 2016/06/12-17:00
;npctime2 = 2016/06/12-20:00 ~ 2016/06/12-21:00
;npctime3 = 2016/06/13-16:00 ~ 2016/06/13-17:00
;npctime4 = 2016/06/13-20:00 ~ 2016/06/13-21:00
;npctime5 = 2016/06/14-16:00 ~ 2016/06/14-17:00
;npctime6 = 2016/06/14-20:00 ~ 2016/06/14-21:00
;npctime7 = 2016/06/15-16:00 ~ 2016/06/15-17:00
;npctime8 = 2016/06/15-20:00 ~ 2016/06/15-21:00
;eventperiod = 2016/06/11-00:00 ~ 2016/06/18-23:59
;timevariable_count = 0
; 
;[npcsetting]
;npcsetting_count = 1
;npc_eventname0 = event_mutant_pig_manager



;; RAT EVENT
;
;[event]
;eventname = event_mutant_rat
;eventnpcname = event_mutant_rat
;flagsettingtime = 600000
;event_doing = 1
;dropitem_count = 0
;droptime_count = 0
;npctime_count = 9
;npctime0 = 2016/06/12-12:00 ~ 2016/06/12-17:50
;npctime1 = 2016/06/12-18:00 ~ 2016/06/12-23:50
;npctime2 = 2016/06/13-00:00 ~ 2016/06/13-23:50
;npctime3 = 2016/06/14-00:00 ~ 2016/06/14-22:00
;npctime4 = 2016/06/14-23:30 ~ 2016/06/15-00:30
;npctime5 = 2016/06/15-10:00 ~ 2016/06/15-11:00
;npctime6 = 2016/06/15-12:00 ~ 2016/06/15-13:00
;npctime7 = 2016/06/15-14:00 ~ 2016/06/15-15:00
;npctime8 = 2016/06/15-16:00 ~ 2016/06/15-17:00
;eventperiod = 2016/06/12-00:00 ~ 2016/06/16-23:59
;timevariable_count = 0
; 
;[npcsetting]
;npcsetting_count = 1
;npc_eventname0 = event_mutant_rat_manager


; SEARCH EVENT - rabbits - MAYBE DOESN'T WORK AS EXPECTED, I'M STILL TESTING IT
; you need to go through npcpos.txt and change [EventName]=[event_search]
; to [EventName]=[event_search_manager] everywhere EXCEPT npc event_search_thing

[event]
eventname = event_search
eventnpcname = event_search
flagsettingtime = 600000
event_doing = 1
dropitem_count = 0
droptime_count = 1
droptime0 = 2016/06/14-00:00 ~ 2016/06/19-23:59
npctime_count = 8
npctime0 = 2016/06/15-00:00 ~ 2016/06/15-13:00
npctime1 = 2016/06/15-14:00 ~ 2016/06/15-23:00
npctime2 = 2016/06/16-00:00 ~ 2016/06/16-13:00
npctime3 = 2016/06/16-14:30 ~ 2016/06/16-23:30
npctime4 = 2016/06/17-10:00 ~ 2016/06/17-13:00
npctime5 = 2016/06/17-14:00 ~ 2016/06/17-23:00
npctime6 = 2016/06/18-00:00 ~ 2016/06/18-13:00
npctime7 = 2016/06/18-14:00 ~ 2016/06/18-23:00
eventperiod = 2016/06/14-00:00 ~ 2016/06/19-23:59
timevariable_count = 0
 
[npcsetting]
npcsetting_count = 1
npc_eventname0 = event_search_manager


I'll probably add more when I test it

 

 

Okay, if you want my event drop system (flat probability based):

 

hook bool CNPC::Die(CCreature *killer) at 0x72972C, do some random rolling and if desired, call 0x533E44 (add drop to given NPC) BEFORE proceeding to 0x72972C:

typedef bool(__thiscall *t)(CCreature*, int, UINT64, bool, int, int, int, void*, int, void*);
t f = (t) 0x00533E44;
UINT32 itemOptionKey[2];
itemOptionKey[0] = 0;
itemOptionKey[1] = 0;
UINT16 baseAttribute[8];
baseAttribute[0] = 0xfffe;
for (size_t i = 1 ; i < 8 ; ++i) {
baseAttribute[i] = 0;
}
return f(this, itemId, count, false, 0, 0, 0, reinterpret_cast<void*>(itemOptionKey), 0, reinterpret_cast<void*>(baseAttribute));
Edited by eressea
  • Thanks 1
Posted (edited)

I'd have killed for this info in the past when I began playing with it.

 

Your droprate system is good that you dont need to mass-add drops to the npcdata if the server pop is too small or unstable for the korean system to work well. Lovely.

 

edit: rabbits event do work, I used it 2years ago or so

Edited by ericvini
Posted

I'd have killed for this info in the past when I began playing with it.

 

Your droprate system is good that you dont need to mass-add drops to the npcdata if the server pop is too small or unstable for the korean system to work well. Lovely.

 

edit: rabbits event do work, I used it 2years ago or so

 

Just fixed one last problem with rabbit event (added droptime + rename event_search -> event_search_manager)

 

Do you have some tested events you can add?

Posted

Just fixed one last problem with rabbit event (added droptime + rename event_search -> event_search_manager)

 

Do you have some tested events you can add?

I need to check my notes later, but i think u re missing the l2day letters and squash events only.

Posted (edited)


[event]
eventname=event_gate_revenge
eventnpcname=event_gate_revenge
event_doing=1
npctime_count=1
npctime0 =2011/11/10-11:00 ~ 2011/11/23-23:59
EventPeriod =2011/11/10-11:00 ~ 2011/11/23-23:59
timevariable_count=1
timevariable0= 0 ~ 24:1

[event]
eventname=bak_event
eventnpcname=event_bak
flagsettingtime=60000
event_doing=1
dropitem_count=1
dropitem0=gourd_nectar1 1
droptime_count=1
droptime0= 2011/9/5-12:00 ~ 2011/9/19-23:00
npctime_count=1
npctime0= 2011/9/5-12:00 ~ 2011/9/26-23:00
timevariable_count=0

[event]
eventname=event_search
eventnpcname=event_search
flagsettingtime=60000
event_doing=1
dropitem_count=1
dropitem0=search_piece 1
droptime_count=1
droptime0=2011/07/07-00:00 ~ 2011/07/21-23:59
npctime_count=1
npctime0=2011/07/07-00:00 ~ 2011/07/28-23:59
EventPeriod=2011/07/07-00:00 ~ 2011/07/28-23:59
timevariable_count=1
timevariable0= 0 ~ 24:1

[event]
eventname=br_valentine_event
eventnpcname=br_valentine_event
flagsettingtime=60000
event_doing=1
dropitem_count=3
dropitem0=br_valen_dark_chocolate 2
dropitem1=br_valen_white_chocolate 2
dropitem2=br_valen_whipped_cream 1
droptime_count=1
droptime0=2010/02/08-08:00 ~ 2010/02/17-20:00
npctime_count=1
npctime0=2010/02/08-08:00 ~ 2010/02/20-08:00
EventPeriod=2010/02/08-08:00 ~ 2010/02/20-08:00
timevariable_count=1
timevariable0= 0 ~ 24:1

[event]
eventname=event_best_enchanter
eventnpcname=event_best_enchanter
flagsettingtime=30000
event_doing=1
dropitem_count=1
dropitem0=yogi_scroll_of_enchant 1
droptime_count=1
droptime0=2011/06/14-00:00 ~ 2011/06/28-23:59
npctime_count=1
npctime0=2011/06/14-00:00 ~ 2011/07/15-23:59
EventPeriod=2011/06/14-00:00 ~ 2011/07/15-23:59
timevariable_count=1
timevariable0= 0 ~ 24:1

[event]
eventname=l2day
eventnpcname=letter_collector
flagsettingtime=60000
event_doing=1
dropitem_count=12
dropitem0=alphabet_a 1
dropitem1=alphabet_e 1
dropitem2=alphabet_g 1
dropitem3=alphabet_c 1
dropitem4=alphabet_i 1
dropitem5=alphabet_l 1
dropitem6=alphabet_n 1
dropitem7=alphabet_r 1
dropitem8=alphabet_ii 1
dropitem9=alphabet_y 1
dropitem8=alphabet_s 1
dropitem8=alphabet_5 1
droptime_count=1
droptime0=2011/5/5-00:00 ~ 2011/5/19-23:59
npctime_count=1
npctime0=2011/5/5-00:00 ~ 2011/6/01-23:59
EventPeriod=2011/5/5-00:00 ~ 2011/5/19-23:59
timevariable_count=1
timevariable0= 0 ~ 24:1

[event]
eventname=event_heart
eventnpcname=heart_event
flagsettingtime=3000
event_doing=1
dropitem_count=9
dropitem0=heart_1 5
dropitem1=heart_2 5
dropitem2=heart_3 5
dropitem3=heart_4 5
dropitem4=heart_5 5
dropitem5=heart_6 5
dropitem6=heart_7 5
dropitem7=heart_8 5
dropitem8=heart_9 5
droptime_count=1
droptime0= 2006/9/14-4:00 ~ 2006/9/21-23:59
npctime_count=1
npctime0= 2006/9/14-4:00 ~ 2006/9/22-23:59
timevariable_count=0

[event]
eventname=collector
eventnpcname=medal
flagsettingtime=3000
event_doing=1
dropitem_count=2
dropitem0=event_medal 5
dropitem1=event_glitter_medal 1
droptime_count=1
droptime0= 2006/8/20-11:00 ~ 2006/9/10-23:59
npctime_count=1
npctime0= 2006/8/20-11:00 ~ 2006/9/11-23:59
timevariable_count=0

[event]
eventname=fireworks
eventnpcname=fire_event
flagsettingtime=3000
event_doing=1
dropitem_count=3
dropitem0=fairy_fire 1
dropitem1=powder 1
dropitem2=magnesium 1
droptime_count=7
droptime0= 2006/9/11-16:00 ~ 2006/9/11-23:00
droptime1= 2006/9/12-16:00 ~ 2006/9/12-23:00
droptime2= 2006/9/13-16:00 ~ 2006/9/13-23:00
droptime3= 2006/9/14-16:00 ~ 2006/9/14-23:00
droptime4= 2006/9/15-16:00 ~ 2006/9/15-23:00
droptime5= 2006/9/16-16:00 ~ 2006/9/16-23:00
droptime6= 2006/9/17-16:00 ~ 2006/9/17-23:00
npctime_count=1
npctime0= 2006/9/11-12:00 ~ 2006/9/17-23:00
timevariable_count=0

[event]
eventname=christmas
eventnpcname=christmas
flagsettingtime=36000
event_doing=1
dropitem_count=4
dropitem0=fir_spring 5
dropitem1=deco_bead 2
dropitem2=deco_star 2
dropitem3=flowerpot 1
droptime_count=1
droptime0= 2007/12/1-01:00 ~ 2007/12/30-23:59
npctime_count=1
npctime0= 2007/12/1-01:00 ~ 2007/12/30-11:00
timevariable_count=0

[event]
eventname=event_mutant_rat
eventnpcname=event_mutant_rat
event_doing=1
dropitem_count=1
dropitem0=mouse_coin 20
droptime_count=1
droptime0=2011/08/04-00:00 ~ 2011/08/26-23:59
npctime_count=1
npctime0=2011/08/04-00:00 ~ 2011/09/04-23:59
EventPeriod=2011/08/04-00:00 ~ 2011/09/04-23:59
timevariable_count=1
timevariable0= 0 ~ 24:1
[npcsetting]
npcsetting_count=1
npc_eventname0=event_rat_manager


Edited by ericvini

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • L2 DEVS - HTML DESIGN (ALL NPC'S)    
    • I only share for free what they are reselling 🙂 You keep crying in all the publications, and if you are looking for h5 or gd wait for 5 or 6 years... cheers.... GENERAL Cached Extended to 8192kb IOBuffer Hair2SlotCache ItemBidAuctioner Clan Hall Current Olympiad Season Rank pages System (Shows Points/Games - Fully Configurable) Automatic Flag Around Raidboss System Offline Shop & Buffers Restore After Restart (Fixed location) Offline Buffer System PvP Auto Announce System Rebuilt with Extra Addons (Fully Configurable, Name, Zones, Rewards) Automatic Announce System Rebuilt with Extra Addons (Fully Configurable) ALT+B Augmentation House Shift+Click Droplist/Spoil List Epic Items Rank RB points Rank ChangeColorName ChangeColorTitle Change Skin (Race) Change Gender Custom Subclass (Acumulative) Achievements Item Delivery System  Augmentations/Enchants Automatic Announce System Auto Learn Skills PvP Reward Pk Reward War Reward Scheme buffer GlobalChatTrade Trade Augment Items Castle Announce Time Castle Standby Time Fix Spiritshots delay SpellbooksDrop Enable/Disable Drop custom Fully configurable, lvl min max allmobs, allrb, individual New cancel effect min,max BlessedarmorEnchantRate BlessedmagicWeaponEnchantRate BlessednormalWeaponEnchantRate MaxSlosChars MaxSlotsDwarfs Enable or disable all commands Fix fast loading npc OlympiadRestoreStatsOnFightStart OlympiadSystemSecondTimeEnabled OlympiadEnterLast10Minute OlympiadThirdClassSummons MinLevelTrade AnnounceSubClassMsg1 AnnounceSubClassMsg2 AnnounceSubClassMsg3 LimitedSubClassRace NoSellItems Change ID SealStones for AA NoPrivateBuyItems NoDropPlayerOnDie DisableSkillEnchantData Show Level Mobs Show npc clan flag DespawnSummonEnBattle SummonPetEnBattle RideSummonPetEnBattle DitanceToTargetMove EnterWorld_Undying EnterWorld_UnHide BlockWhispMessagePlayerToGM UseItemsWithHide CriticalSkillDamageBonusPer=4.0 Disable SSQSystem OnCastle Siege End Use any dyes Buy halls directly in auctioneer without waiting for the auction, configuration to change the item you consume MensajeEnterWorldServer Command .hero enable/disable hero aura Config vip global chat character, chat by systemsg Soulshots: NoSendSystemMessageUse Panel //admin Global vote reward Agathions system Anti Interface, control all patch files by md5 Command .menu configurable, last restart, name, maxusers, privatestores Spawn protection activate deactivate consume items to activate  Activate or deactivate autoloot for vip characters EVENTS Happy Hour Event reworked Configurable by announcements or systemsg Team VS Team Capture The Flag Death Match Last Man Standing Destroy The Base Korean Style Castle Siege Check if the player is inside the tvt event due to disconnection/critical error Top 1/5 killer reward/announce TimeAfk ResetReuseSkills ResetBuffsOnFinish Firework effect Reward win/lost Add Team Location Title custom Red/blue Open Door/Wall System BalanceBishops Show kills in title Invest positions Show Death To Top Delete Non-Subclass Skills     RELOADS Reload Enterworld Html Option Reload Faction System Reload Donate Shop Reload OfflineBuffer Reload Champion NPC Reload CliExt Reload AntiBot Reload Vip System Reload Auction Reload AutoLoot Reload CastleSiegeManager Reload CharacterLock Reload ClanPvPStatus Reload AutoLearn Reload ClanReputationRank Reload ClanSystem Reload CreatureAction Reload Customs.ini Reload L2server.ini Reload SkillData.txt Reload doordata.txt Reload decodata.txt Reload Multisell Reload DropList   Extender tested for more than 3 years. Assured stability. Possibility of adding MOD's upon request. (Not included, consult).
    • some peoples trash is another mans treasure, is that your treasure?   people might like the content but you are still the rat in the room     thats the community judging you.  
    • Keep reselling what I publish here for free!!! 🙂 GG  
  • Topics

×
×
  • Create New...