Jump to content

Worst

Members
  • Posts

    57
  • Joined

  • Last visited

Profile Information

  • Gender
    Male

Recent Profile Visitors

3316 profile views

Worst's Achievements

Poring

Poring (1/15)

  • One Month Later
  • One Year In
  • Week One Done

Recent Badges

1

Reputation

  1. Eu utilizo estas 0x0369,7,actionrequest,2:6 0x083c,10,useskilltoid,2:4:6 0x0437,5,walktoxy,2 0x035f,6,ticksend,2 0x0202,5,changedir,2:4 0x07e4,6,takeitem,2 0x0362,6,dropitem,2:4 0x07ec,8,movetokafra,2:4 0x0364,8,movefromkafra,2:4 0x0438,10,useskilltopos,2:4:6:8 0x0366,90,useskilltoposmoreinfo,2:4:6:8:10 0x096a,6,getcharnamerequest,2 0x0368,6,solvecharname,2 0x0838,12,searchstoreinfolistitemclick,2:6:10 0x0835,2,searchstoreinfonextpage,0 0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15 0x0811,-1,reqtradebuyingstore,2:4:8:12 0x0360,6,reqclickbuyingstore,2 0x0817,2,reqclosebuyingstore,0 0x0815,-1,reqopenbuyingstore,2:4:8:9:89 0x0365,18,partybookingregisterreq,2:4 0x0363,8 // CZ_JOIN_BATTLE_FIELD 0x0281,-1,itemlistwindowselected,2:4:8 0x022d,19,wanttoconnection,2:6:10:14:18 0x0802,26,partyinvite2,2 0x0436,4 // CZ_GANGSI_RANK 0x023b,26,friendslistadd,2 0x0361,5,hommenu,4 0x0860,36,storagepassword,0 Não esqueça de diffar o hexed para desativar a packet ofuscation
  2. Worst

    Item price

    Well, my server will be full pvp then modified all items to the purchase price 0, however when placing NPC example 607:0 or 607:-1 emulator accuses one warning. How do I solve this? - shop test1 -1,608:0 - shop test2 -1,607:0 prontera,148,144,5 script Test Shop 508,{ switch(select("Test 0","Test -1")){ case 1: callshop "test1",1; end; case 2: callshop "test2",1; end; } OnInit: waitingroom "Test",0; end; } DB item: 607,Yggdrasilberry,Yggdrasil Berry,0,0,,300,,,,,0xFFFFFFFF,63,2,,,,,,{ percentheal 100,100; },{},{}
  3. I'm trying to use the following diff eAthena but he has incompatibility and as I have limited knowledge can not fix. Diff download: CLICK ME Original Post: https://eathena.ws/board/index.php?showtopic=247238
  4. Worst

    @cloneskill

    I tried installing this diff but when compiling the error. I've tried changing the lvl per level and remained the error. download diff: http://www.mediafire.com/download/shh7arv444mxbf4 Index: src/map/script.c =================================================================== --- src/map/script.c (revision 1187) +++ src/map/script.c (working copy) @@ -14949,7 +14949,48 @@ return 0; } +/* ====================================================== * + * cloneskill [Hold] + * ------------------------------------------------------ */ +BUILDIN_FUNC(cloneskill) +{ + int id = ((script_isint(st,2)) ? skill_get_index(script_getnum(st,2)) : skill_name2id(script_getstr(st,2))); + int lvl = script_getnum(st,3), oldskreg; + TBL_PC *sd = script_rid2sd(st); + + if(!sd) return 1; + + if(id <= 0 || lvl <= 0) + { + ShowError("buildin_cloneskill: Incorrect data for skill, ID = %d | Level = %d", id, lvl); + return 1; + } + + if(oldskreg = pc_readglobalreg(sd, "CLONE_SKILL")) + { + sd->status.skill[oldskreg].id = 0; + sd->status.skill[oldskreg].lv = 0; + sd->status.skill[oldskreg].flag = 0; + clif_deleteskill(sd, oldskreg); + } + + sd->status.skill[id].id = id; + sd->status.skill[id].lv = lvl; + sd->status.skill[id].flag = SKILL_FLAG_PLAGIARIZED; + sd->cloneskill_id = id; + + pc_setglobalreg(sd, "CLONE_SKILL", id); + pc_setglobalreg(sd, "CLONE_SKILL_LV", lvl); + + clif_addskill(sd, id); + + return 0; +} // declarations that were supposed to be exported from npc_chat.c #ifdef PCRE_SUPPORT BUILDIN_FUNC(defpattern); @@ -15044,6 +15085,7 @@ BUILDIN_DEF(autobonus2,"sii??"), BUILDIN_DEF(autobonus3,"siiv?"), BUILDIN_DEF(skill,"vi?"), + BUILDIN_DEF(cloneskill,"vi"), BUILDIN_DEF(addtoskill,"vi?"), // [Valaris] BUILDIN_DEF(guildskill,"vi"), BUILDIN_DEF(getskilllv,"v"), Index: src/map/atcommand.c =================================================================== --- src/map/atcommand.c (revision 1187) +++ src/map/atcommand.c (working copy) @@ -8633,6 +8633,57 @@ return 0; } +/* ====================================================== * + * @cloneskill [Hold] + * ------------------------------------------------------ */ +ACMD_FUNC(cloneskill) +{ + char name[255]; + int id, lvl, type = 0, oldskreg; + nullpo_retr(-1, sd); + + if (!message || !*message || ( + sscanf(message, "\"%99[^\"]\" %d %d", name, &lvl, &type) < 2 && + sscanf(message, "%99s %d %d", name, &lvl, &type) < 2 )) + { + clif_displaymessage(fd, "You must enter ID and skill level."); + return -1; + } + + if(!(id = skill_name2id(name)) && !(id = skill_get_index(atoi(name)))) + { + clif_displaymessage(fd, "name or ID ability are invalids."); + return -1; + } + + if(oldskreg = pc_readglobalreg(sd, "CLONE_SKILL")) + { + sd->status.skill[oldskreg].id = 0; + sd->status.skill[oldskreg].lv = 0; + sd->status.skill[oldskreg].flag = 0; + clif_deleteskill(sd, oldskreg); + } + + sd->status.skill[id].id = id; + sd->status.skill[id].lv = lvl; + sd->status.skill[id].flag = SKILL_FLAG_PLAGIARIZED; + sd->cloneskill_id = id; + + pc_setglobalreg(sd, "CLONE_SKILL", id); + pc_setglobalreg(sd, "CLONE_SKILL_LV", lvl); + + clif_addskill(sd, id); + + memset(atcmd_output, '\0', sizeof(atcmd_output)); + sprintf(atcmd_output,"Habilidade: '%s' | Nível: '%d'", skill_get_name(id), lvl); + clif_displaymessage(fd, atcmd_output); + + return 0; +} + /*========================================== * atcommand_info[] structure definition *------------------------------------------*/ @@ -8824,6 +8875,7 @@ { "skillid", 40,40, atcommand_skillid }, { "useskill", 40,40, atcommand_useskill }, { "displayskill", 99,99, atcommand_displayskill }, + { "cloneskill", 99,99, atcommand_cloneskill }, { "snow", 99,99, atcommand_snow }, { "sakura", 99,99, atcommand_sakura }, { "clouds", 99,99, atcommand_clouds },
  5. Worst

    MAX_SHOPITEM

    Formerly the MAX_SHOPITEM was located in src / map / npc.c. However I edit today and is no more, how can I edit it?
  6. I have 260 duplicates of an NPC, but only works until the starting number 100 that she no longer works, how to change this limit?
  7. Worst

    SC_MANHOLE

    dont have sucess
  8. Worst

    SC_MANHOLE

    How do I edit the Manhole not be possible to place the target side example: In this image and can put the Manhole one cell next to the player In this image the Manhole is placed 2 cell away from the player ( I would leave it )
  9. Worst

    Bug Relog

    It has as I put new applications without having to change my old database? account has 2000 players in it.
  10. Worst

    Bug Relog

    I have a problem, I installed the emulator in the last rev and for some reason some people to givestoreall and relog the items that were for the storage duplicate what is it? Error: [SQL]: DB error - data of field 'card0' was truncated. [Debug]: column - 11 [Debug]: data - type=MYSQL_TYPE_SHORT, length=2 [Debug]: buffer - type=UNSIGNED MYSQL_TYPE_SHORT, length=2 [Info]: Saved char 200008 - WorstRK: inventory storage status status2 skills. [Info]: Character 'WorstRK' logged off. [Info]: Saved char 206208 - ShurrosRK: inventory status. [Info]: request connect - account_id:2000050/login_id1:1794363475/login_id2:48575041
  11. Worst

    Cast

    Where is the formula of fixed and variable cast?
  12. How to put a player limit on my server? Example able to connect only 100 players
  13. Worst

    Crash Logs

    how to install crash logs in my emulator?
×
×
  • Create New...