Emistry

Forum Moderator
  • Content Count

    9,145
  • Avg. Content Per Day

    3
  • Joined

  • Last visited

  • Days Won

    198

Everything posted by Emistry

  1. db/re/item_db.txt 5900,Divine_Guard_Hat,Divine Guard Hat,4,0,,200,,10,,1,0x00004000,56,2,256,,100,1,1121,{ [email protected] = getrefine(); bonus2 bSubSize,Size_All,5; if([email protected]>=7) { [email protected] = getskilllv("AL_HEAL"); bonus3 bAutoSpellWhenHit,"AL_HEAL",([email protected] ? [email protected] : 5),10; } if([email protected]>=9) { bonus2 bSkillAtk,"LG_RAYOFGENESIS",20; } },{},{}
  2. if (Class == Job_Taekwon) { // ... } if ((eaclass() & EAJ_BASEMASK) == EAJ_TAEKWON) { // ... } etc
  3. - script effect_timer_npc HIDDEN_WARP_NPC,{ OnTimer1000: donpcevent "::OnEffect696"; // will trigger all npc that has this event label OnInit: initnpctimer; end; } - script effect_npc HIDDEN_WARP_NPC,{ OnEffect696: enablenpc(strnpcinfo(3)); misceffect 696; sleep rand(150,250); disablenpc(strnpcinfo(3)); end; } prontera,1,1,4 duplicate(effect_npc) #effect_npc_1 HIDDEN_WARP_NPC prontera,1,1,4 duplicate(effect_npc) #effect_npc_2 HIDDEN_WARP_NPC prontera,1,1,4 duplicate(effect_npc) #effect_npc_3 HIDDEN_WARP_NPC
  4. prontera,148,187,4 script WOE Information 652,{ doevent "WOE_CONTROL::OnMenu"; end; OnInit: OnAgitEnd: delwaitingroom; waitingroom "War of Emperium: Inactive",0; end; OnAgitStart: delwaitingroom; waitingroom "War of Emperium: Active", 0; while(agitcheck()) { specialeffect EF_BEGINSPELL6; sleep 425; } end; }
  5. if(gettimetick(2) - #dailytimer < ( .Hour * 3600)) { change to if(#dailytimer > gettimetick(2)) {
  6. [email protected] = getunits(BL_PC, [email protected], false, "payon"); for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) addtimer(0,strnpcinfo(0)+"::OnHPBar", [email protected][[email protected]]); change to addrid(5, "payon"); addtimer(1000, strnpcinfo(0)+"::OnHPBar");
  7. updated 1.2, fixed cooldown and added option for zeny cost per refine attempt.
  8. prontera,155,181,5 script sample 757,{ switch(select( "Dice Event - " + ($EVT_Dice ? "^FF0000Not Available":"^00FF00Active") + "^000000", "Poring Event - " + (!$EVT_Poring ? "^FF0000Not Available":"^00FF00Active") + "^000000", "LMS Event - " + ($EVT_LMS ? "^FF0000Not Available":"^00FF00Active") + "^000000" )) { case 1: mes "blablbala"; case 2: mes "blablbala"; case 3: mes "blablbala"; } close; }
  9. you can actually spawn it this way and use setuntidata to control the direction. monster "payon",159,215,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled"; setunitdata [email protected]id[0], UMOB_LOOKDIR, DIR_EAST; monster "payon",159,213,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled"; setunitdata [email protected][0], UMOB_LOOKDIR, DIR_EAST; monster "payon",152,215,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled"; setunitdata [email protected][0], UMOB_LOOKDIR, DIR_WEST; monster "payon",152,213,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled"; setunitdata [email protected][0], UMOB_LOOKDIR, DIR_WEST;
  10. your npc is trying to update the data of a unit that no longer exists or invalid. post your script if you're asking others to check your script issue.
  11. change all @daily @DailyReward to #daily #DailyReward
  12. conf/groups.conf all_skill: true find and remove this from your player group or check the inherited groups
  13. search through the internet .....
  14. dig the item_db lol //=================================================================== // Cash Shop Usable Items //=================================================================== 12202,Str_Dish10_,Steamed Tongue,0,2,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ sc_start SC_FOOD_STR_CASH,1800000,10; percentheal 15,5; },{},{} 12203,Agi_Dish10_,Steamed Scorpion,0,2,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ sc_start SC_FOOD_AGI_CASH,1800000,10; percentheal 15,5; },{},{} 12204,Int_Dish10_,Dragon Breath Cocktail,0,2,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ sc_start SC_FOOD_INT_CASH,1800000,10; percentheal 15,5; },{},{} 12205,Dex_Dish10_,Hwergelmir's Tonic,0,2,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ sc_start SC_FOOD_DEX_CASH,1800000,10; percentheal 15,5; },{},{} 12206,Luk_Dish10_,Cooked Nine Tail's Tails,0,2,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ sc_start SC_FOOD_LUK_CASH,1800000,10; percentheal 15,5; },{},{} 12207,Vit_Dish10_,Stew Of Immortality,0,2,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ sc_start SC_FOOD_VIT_CASH,1800000,10; percentheal 15,5; },{},{}
  15. prontera,155,181,5 script Stats Mistress 757,{ mes "[ Stats Mistress ]"; mes "Hello! I sell ^FF00CC1 stats for 400,000z^000000 would you like to buy!"; [email protected] = select( .stat_menu$ ) - 1; input [email protected],0,( .max_stats - readparam( [email protected] ) ); if ( [email protected] > 0 ) { [email protected] = ( .cost_per_stat * [email protected] ); mes "Stats : "+.stat$[[email protected]]+" +"+F_InsertComma( [email protected] ); mes "Price : "+F_InsertComma( [email protected] )+"z"; mes "Do you wish to continue ?"; [email protected]_stat = readparam(bStr + [email protected]); if ([email protected]_stat >= .max_stats) { message strcharinfo(0), "You've reached the maximum "+.stat$[[email protected]]; } else if (([email protected]_stat+ [email protected]) >= .max_stats) { message strcharinfo(0), "You can't exceed the maximum stats of "+.max_stats; } else if ( Zeny >= [email protected] ) { if ( select( "Buy "+F_InsertComma( [email protected] )+" ^FF00CC"+.stat$[[email protected]]+"^000000" ) ) { Zeny -= [email protected]; statusup2 (bStr + [email protected]),[email protected]; message strcharinfo(0), "Gained "+F_InsertComma( [email protected] )+" "+.stat$[[email protected]]; } } } close; OnInit: .max_stats = 300; .cost_per_stat = 400000; setarray .stat$, "STR", "AGI", "VIT", "INT", "DEX", "LUK"; [email protected]_size = getarraysize( .stat$ ); while ( [email protected] < [email protected]_size ) { .stat_menu$ = .stat_menu$ + "^FF00CC"+.stat$[[email protected]]+"^000000" + ":"; [email protected]++; } end; }
  16. you can use cash food instead. or copy the item bonus script.
  17. pc_setglobalreg(sd, add_str("ProducePoints"), pc_readglobalreg(sd, add_str("ProducePoints")) + 1);
  18. [email protected],270,51,0 script 24FGate102tower 45,2,2,{ end; OnInstanceInit: disablenpc instance_npcname("24FGate102tower", instance_id()); end; OnEnable: enablenpc instance_npcname("24FGate102tower", instance_id()); areamonster "[email protected]",352,9,362,45,"Gato de Nove Caudas",1307,15,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead"; areamonster "[email protected]",352,9,362,45,"Flor do Luar",1150,1,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead"; areamonster "[email protected]",352,9,362,45,"Nove Caudas",1180,15,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead"; end; OnTouch_: warp "[email protected]",395,12; end; OnMyMobDead: set [email protected]_dead_num,mobcount("[email protected]",instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead"); if ([email protected]_dead_num < 1) { instance_announce 0, "Todos os monstros no 25° andar foram derrotados.",bc_map,"0xffff00"; donpcevent instance_npcname("25FGate102tower", instance_id())+"::OnEnable"; areamonster "[email protected]",352,9,362,45,"Baú do Tesouro",1356,1,instance_npcname("24FGate102tower", instance_id())+"::Onboxdead1"; areamonster "[email protected]",352,9,362,45,"Baú do Tesouro",1356,1,instance_npcname("24FGate102tower", instance_id())+"::Onboxdead1"; areamonster "[email protected]",352,9,362,45,"Baú do Tesouro",1356,1,instance_npcname("24FGate102tower", instance_id())+"::Onboxdead1"; // party rewards. addrid(2, 0, getcharid(1)) { if (strcharinfo(3) == strnpcinfo(4)) { getitem 512, 1; getitem 512, 2; getitem 512, 3; } } } else instance_announce 0, "Monstros vivos no 25° andar: " + [email protected]_dead_num,bc_map,"0x00ff99"; end; Onboxdead1: Announce "[Torre Infinita. And.25] " + strcharinfo(0) +" abriu um dos Baús do Tesouro.",8; end; }
  19. you're probably killing monster with event label using GM commands, which you shouldn't else the script should have check if any player are attached before continue execution.
  20. if (!onetimeitem) { onetimeitem = 1; } remove the prefix '#' that indicated the variable as account variable.
  21. - script Sample -1,{ OnNPCKillEvent: if (strcharinfo(3) == "prt_fild01") { if (rand(100) < 1) { // 1% get item. getitem 512, 1; } } end; }
  22. try configure the db/re/skill_tree.txt
  23. // https://rathena.org/board/topic/121262-custom-bring-me-event/ /* CREATE TABLE IF NOT EXISTS `bring_me_event` ( `id` int(11) unsigned NOT NULL auto_increment, `aid` int(11) unsigned NOT NULL default '0', `cid` int(11) unsigned NOT NULL default '0', `last_ip` varchar(100) NOT NULL default '', `last_unique_id` varchar(100) NOT NULL default '', `time` datetime NOT NULL, ) ENGINE=MyISAM; */ prontera,0,0,0 script Sample 444,{ [email protected] = getcharid(3); [email protected] = getcharid(0); [email protected]$ = getcharip(); [email protected]_id$ = get_unique_id(); query_logsql("SELECT `id`,`time` FROM `bring_me_event` WHERE `aid` = "[email protected]+" OR `last_ip` = '"+escape_sql([email protected]$)+"' OR `last_unique_id` = '"+escape_sql([email protected]_id$)+"' LIMIT 1", [email protected], [email protected]$); query_logsql("SELECT COUNT(`id`) FROM `bring_me_event`", [email protected]); if ([email protected] >= .max_redeem) { mes "you missed the reward, only "+.max_redeem+" players got the reward."; } else if ([email protected]) { mes "You've already claimed the rewards on "[email protected]$+"."; } else { mes "Bring me "+.amount+"x "+getitemname(.item_id); if (countitem(.item_id) >= .amount) { if (select("Okay","Cancel") == 1) { delitem .item_id, .amount; query_logsql("INSERT INTO `bring_me_event` (`aid`,`cid`,`last_ip`,`last_unique_id`,`time`) VALUES ("[email protected]+","[email protected]+",'"+escape_sql([email protected]$)+"','"+escape_sql([email protected]_id$)+"', NOW())"); getitem 501,1; getitem 502,1; getitem 503,1; mes "you are the "+([email protected]+1)+"/"+.max_redeem+" players who got the reward"; } } } close; OnInit: .item_id = 512; .amount = 300; .max_redeem = 200; end; } you can try this.
  24. remove it from db/re/item_stack.txt