Jump to content

mkhzaleh

Members
  • Content count

    188
  • Joined

  • Last visited

  • Days Won

    13

mkhzaleh last won the day on February 12

mkhzaleh had the most liked content!

Community Reputation

48 Neutral

5 Followers

About mkhzaleh

  • Rank
    Boatswain

Recent Profile Visitors

5,829 profile views
  1. mkhzaleh

    Entry check

    you don't need all of this i guess can be in this simple way if GetSkillLv (role,459) < 1 then --systemnotice here bla bla return end
  2. mkhzaleh

    Fairy exp, and mob drop question

    you can't just copy past without read the code lol its random chance and the example i gave above work for monster id " 66 " you can edit it to what is fine for your files/server etc
  3. mkhzaleh

    Fairy exp, and mob drop question

    Give_ElfEXP ( role , Item_bg , 1 , 0 ) --这里有问题
  4. mkhzaleh

    Phyllis crusader gear

    yes, you can use pko model viewer to checkout models
  5. mkhzaleh

    Fairy exp, and mob drop question

    cha_timer
  6. mkhzaleh

    Fairy exp, and mob drop question

    you can't killl npc but if you mean kill a monster use this small lua function function fairyexp(Player, Fairy) local FairyEXP = GetItemAttr(Fairy, ITEMATTR_ENERGY) local FairyMaxEXP = GetItemAttr(Fairy, ITEMATTR_MAXENERGY) FairyEXP = FairyEXP + 1 if GetItemAttr(Fairy, ITEMATTR_URE) > 49 then if FairyEXP >= FairyMaxEXP then FairyEXP = FairyMaxEXP end SetItemAttr(Fairy, ITEMATTR_ENERGY, FairyEXP) end end function GetExp_New(dead , atk ) local DeadMonster = GetChaID(dead) if DeadMonster == 66 then local Fairy = GetChaItem(atk, 2, 1) if Fairy == nil then return end local FairyType = GetItemType(Fairy) local chance = math.random(1, 100) if FairyType == 59 then if chance >= 50 then fairyexp(atk, Fairy) BickerNotice(atk, "Fairy EXP: Fairy Received x [1] EXP ") end end end end
  7. mkhzaleh

    Fairy exp, and mob drop question

    not sure what do you want but you can try like this local dead_id = GetChaID(dead) local mob = {} mob[715] = {ItemDrop = 3457, Quantity = 1, Quality = 4, Rate = .5} --50% drop mob[716] = {ItemDrop = 3457, Quantity = 1, Quality = 4, Rate = .5} --50% drop mob[717] = {ItemDrop = 3457, Quantity = 1, Quality = 4, Rate = .5} --50% drop if mob[dead_id] ~= nil then if Percentage_Random(mob[dead_id].Rate) == 1 then mob[dead_id].Quantity = math.random(1,10) -- 1 to 10 GiveItemX ( atk, 0, mob[dead_id].ItemDrop, mob[dead_id].Quantity , mob[dead_id].Quality) BickerNotice ( atk, "Received a Kal Runestone! Check your Temp Bag.") end end or you can use like this mob[715] = {ItemDrop = 3457, Quantity = 10, Quality = 4, Rate = .5} mob[dead_id].Quantity = math.random(1,Quantity) --
  8. mkhzaleh

    Phyllis crusader gear

    the model inside iteminfo example 3 Fencing Sword w0003 10100001 01010003 02010003 03010072 //ID Name Icon Name Model (Ground) Model (Lance) Model (Carsise) Model (Phyllis) Model (Ami)
  9. mkhzaleh

    glow bug

    change the yellow mark from 0 to 1 for that effect if effect not following you
  10. mkhzaleh

    Kill mobs and earn money

    can't use Visual Studio Code
  11. mkhzaleh

    Kill mobs and earn money

    when you do copy past from forums you may have extra symbols like this
  12. mkhzaleh

    Kill mobs and earn money

    try this function GetExp_PKM(dead, atk) local MonsterIDs = { [789] = 5000, ---monster id --- gold amount } local monster = GetChaID(dead) for i,v in pairs(MonsterIDs) do if (i == monster) then AddMoney(atk, 0, v) break end end end
  13. mkhzaleh

    Corsairs Online Source codes

    missing db tables read @ README@ And add them
  14. mkhzaleh

    Looking to Make a New Item

    else if( _pItem->sType == 46 ) // 勇者之证 { PushHint( _pItem->szName, COLOR_WHITE, 5, 1 ); int show_attr[] = { ITEMATTR_VAL_STR, ITEMATTR_VAL_AGI, ITEMATTR_VAL_DEX, ITEMATTR_VAL_CON, ITEMATTR_VAL_STA }; string show_text[] = { g_oLangRec.GetString(650), g_oLangRec.GetString(651), g_oLangRec.GetString(652), g_oLangRec.GetString(653), g_oLangRec.GetString(654) }; int value = 0; const int count = sizeof(show_attr)/sizeof(show_attr[0]); for( int i=0; i<count; i++ ) { value = item.sInstAttr[show_attr[i]]; item.sInstAttr[show_attr[i]] = 0; sprintf( buf, "%s:%d", show_text[i].c_str(), value ); PushHint( buf, GENERIC_COLOR ); } sprintf( buf, g_oLangRec.GetString(655), _ItemData.sEndure[1] ); PushHint( buf, GENERIC_COLOR ); sprintf( buf, "%s:%d", g_oLangRec.GetString(848), _ItemData.sEnergy[1] ); // 乱斗点数 PushHint( buf, GENERIC_COLOR ); _AddDescriptor(); } inside void CItemCommand::AddHint( int x, int y ) client source code
  15. mkhzaleh

    Corsairs Online Source codes

    make sure ur username & password is correct to login use this start system\Game.exe startgame ip:127.0.0.1 autolog:username,password,startgame
×