Jump to content

saovarott159

Members
  • Posts

    53
  • Joined

  • Last visited

About saovarott159

  • Birthday 05/10/1985

Profile Information

  • Gender
    Male
  • Location
    LA

Recent Profile Visitors

1912 profile views

saovarott159's Achievements

Poring

Poring (1/15)

1

Reputation

1

Community Answers

  1. // get a Mob ID from the user input .@mob_id; if (getmobdrops(.@mob_id)) { // 'getmobdrops' returns 1 on success .@count = $@MobDrop_count; copyarray .@item[0],$@MobDrop_item[0],.@count; copyarray .@rate[0],$@MobDrop_rate[0],.@count; mes getmonsterinfo(.@mob_id,MOB_NAME) + " - " + .@count + " drops found:"; for( .@i = 0; .@i < .@count; .@i++ ) { mes .@item[.@i] + " (" + getitemname(.@item[.@i]) + ") " + .@rate[.@i]/200 + ((.@rate[.@i]%100 < 10) ? ".0":".") + .@rate[.@i]%100 + "%"; } } else { mes "Unknown monster ID."; } close;
  2. OK thank you so much the last question help me please How to convert (example in picture) 1.50 to 1.25 0.02 to 0.01 script : mes "^FF0000" + getitemname(.@item[.@i]) + " = " + .@rate[.@i]/200 + ((.@rate[.@i]%100 < 10) ? ".0":".") + .@rate[.@i]%100 + "%^000000";
  3. thank you it work.. If i want show detail item drop and %drop .. mes "Job EXP:" + getmonsterinfo(.@id,MOB_?????);
  4. - script atcmd_mi -1,{ OnInit: bindatcmd "mi",strnpcinfo(3)+"::OnAtcommand"; end; OnAtcommand: if(.@atcmd_numparameters == 0){ dispbottom "Usage: @mi <id>"; end;} .@id = atoi(.@atcmd_parameters$[0]); if(getmonsterinfo(.@id,MOB_NAME) == -1){ dispbottom "Monster ID not found"; end; } mes "Name:" + getmonsterinfo(.@id,MOB_NAME); mes "Lv:" + getmonsterinfo(.@id,MOB_LV); mes "HP:" + getmonsterinfo(.@id,MOB_MAXHP); mes "Base EXP:" + getmonsterinfo(.@id,MOB_BASEEXP); mes "Job EXP:" + getmonsterinfo(.@id,MOB_JOBEXP); end; } Thank you but it's work...
  5. Hello guys. How to change style detail on atcommand @mi to Thank you
  6. Hello guys I want example script reset all atcommand if player warp to map "prt_maze03" Thank so much..
  7. Hello guys ... help me please Modify script.c when re-compile warning show. script.c =================================================================== src/map/script.c =================================================================== script_pushint(st, storage_premiumStorage_load(sd, stor_id, script_getnum(st, 3))); return SCRIPT_CMD_SUCCESS; } +//======================================================= +// Pet Evolution +//======================================================= +static int pethatch_eggsearch(int tid, int64 tick, int id, int data){ + struct block_list *bl = map_id2bl(id); + struct map_session_data *sd = map_id2sd(id); + int i; + + if(!sd) + return false; + + i = pc_search_inventory(sd,data); + pet_select_egg(sd,i); + + return true; +} + +BUILDIN_FUNC(pethatch) +{ + TBL_PC *sd; + int id,pet_id; + id=script_getnum(st,2); + sd=script_rid2sd(st); + + if (!sd) + return false; + + if(sd->status.pet_id) + return false; + + pet_id = search_petDB_index(id, PET_CLASS); + if(pet_id < 0) + script_pushint(st,0); + else { + sd->catch_target_class = pet_db[pet_id].class_; + intif_create_pet(sd->status.account_id, sd->status.char_id, + (short)pet_db[pet_id].class_, + (short)mob_db(pet_db[pet_id].class_)->lv, + (short)pet_db[pet_id].EggID, 0, + (short)pet_db[pet_id].intimate, + 100, 0, 1, pet_db[pet_id].jname); + add_timer_func_list(pethatch_eggsearch, "pethatch_eggsearch"); + add_timer(gettick() + 1000, pethatch_eggsearch, sd->bl.id, pet_db[pet_id].EggID); + } + + return true; +} + +BUILDIN_FUNC(petremove) +{ + TBL_PC *sd; + + sd=script_rid2sd(st); + if (!sd) + return false; + + if(!sd->status.pet_id) + return false; + + unit_free(&sd->pd->bl,CLR_OUTSIGHT); + intif_delete_petdata(sd->status.pet_id); + sd->status.pet_id = 0; + + return true; +} #include "../custom/script.inc" =================================================================== // WoE TE BUILDIN_DEF(agitstart3,""), BUILDIN_DEF(agitend3,""), BUILDIN_DEF(agitcheck3,""), BUILDIN_DEF(gvgon3,"s"), BUILDIN_DEF(gvgoff3,"s"), // Pet Evo BUILDIN_DEF(pethatch,"i"), BUILDIN_DEF(petremove,""), #include "../custom/script_def.inc" =================================================================== struct Script_Config script_config = { 1, // warn_func_mismatch_argtypes 1, 65535, 2048, //warn_func_mismatch_paramnum/check_cmdcount/check_gotocount 0, INT_MAX, // input_min_value/input_max_value // NOTE: None of these event labels should be longer than <NAME_LENGTH> characters "OnPCDieEvent", //die_event_name "OnPCKillEvent", //kill_pc_event_name "OnNPCKillEvent", //kill_mob_event_name "OnPCLoginEvent", //login_event_name "OnPCLogoutEvent", //logout_event_name "OnPCLoadMapEvent", //loadmap_event_name "OnPCBaseLvUpEvent", //baselvup_event_name "OnPCJobLvUpEvent", //joblvup_event_name + "OnPetEvolveEvent", //pet_evolved_event_name "OnPCStatCalcEvent", //stat_calc_event_name "OnTouch_", //ontouch_name (runs on first visible char to enter area, picks another char if the first char leaves) "OnTouch", //ontouch2_name (run whenever a char walks into the OnTouch area) "OnWhisperGlobal", //onwhisper_event_name (is executed when a player sends a whisper message to the NPC) };
  8. Hello , help me Set numerate rebirth affect all character in ID -----------------------------------------------------------------------------
  9. Hello help me... How to fix debug (example in picture)
×
×
  • Create New...