Jump to content

Worst

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by Worst

  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?
  14. thanks bro solved
  15. How to block a command on a map Example: Block command @event in prontera and izlude
  16. Did not quite understand what to do packet_db More prints: Console:
  17. If you need more information just ask. I did not think the error is giving in because it looked, and nothing but
  18. Erro console: I repaired warning and error continued. [Warning]: s aid=2000000 has an incorect version=0 in clientinfo. Server compiled for 30
  19. My server is online but when I get the this error: [Warning]: s aid=2000000 has an incorect version=0 in clientinfo. Server compiled for 30 Clientinfo: <?xml version="1.0" encoding="euc-kr" ?> <clientinfo> <desc>Ragnarok Client Information</desc> <servicetype>brazil</servicetype> <servertype>primary</servertype> <hideaccountlist /> <passwordencrypt /> <passwordencrypt2 /> <extendedslot /> <readfolder /> <connection> <display>Full PvP RO</display> <desc>Welcome</desc> <balloon>1000x/1000x/500x</balloon> <address>127.0.0.1</address> <port>6900</port> <version>30</version> <langtype>12</langtype> <registrationweb>http://myserver.com/</registrationweb> <aid> <admin>2000000</admin> <admin>2000001</admin> <admin>2000002</admin> <admin>2000003</admin> <admin>2000004</admin> </aid> <loading> <image>loading00.jpg</image> <image>loading01.jpg</image> <image>loading02.jpg</image> <image>loading03.jpg</image> <image>loading04.jpg</image> <image>loading05.jpg</image> <image>loading06.jpg</image> <image>loading07.jpg</image> <image>loading08.jpg</image> <image>loading09.jpg</image> <image>loading10.jpg</image> <image>loading11.jpg</image> <image>loading12.jpg</image> <image>loading13.jpg</image> </loading> </connection> </clientinfo> src/common/mmo.h #ifndef PACKETVER //#define PACKETVER 20130807 #define PACKETVER 20120410 #endif db/packet_db.txt packet_db_ver: 30 //2012-04-10aRagexeRE packet_ver: 30 0x01FD,15,repairitem,2 0x089C,26,friendslistadd,2 0x0885,5,hommenu,2:4 0x0961,36,storagepassword,0 0x0288,-1,cashshopbuy,4:8 0x091C,26,partyinvite2,2 0x094B,19,wanttoconnection,2:6:10:14:18 0x0369,7,actionrequest,2:6 0x083C,10,useskilltoid,2:4:6 0x0439,8,useitem,2:4 0x0945,-1,itemlistwindowselected,2:4:8 0x0815,-1,reqopenbuyingstore,2:4:8:9:89 0x0817,2,reqclosebuyingstore,0 0x0360,6,reqclickbuyingstore,2 0x0811,-1,reqtradebuyingstore,2:4:8:12 0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15 0x0835,2,searchstoreinfonextpage,0 0x0838,12,searchstoreinfolistitemclick,2:6:10 0x0437,5,walktoxy,2 0x0886,6,ticksend,2 0x0871,5,changedir,2:4 0x0938,6,takeitem,2 0x0891,6,dropitem,2:4 0x086C,8,movetokafra,2:4 0x08A6,8,movefromkafra,2:4 0x0438,10,useskilltopos,2:4:6:8 0x091D,18,bookingregreq,2:4:6 0x0366,90,useskilltoposinfo,2:4:6:8:10 0x0889,6,getcharnamerequest,2 0x0884,6,solvecharname,2 0x08E5,41,bookingregreq,2:4 //Added to prevent disconnections 0x08E6,4 0x08E7,10,bookingsearchreq,2 0x08E8,-1 0x08E9,2,bookingdelreq,2 0x08EA,4 0x08EB,39,bookingupdatereq,2 0x08EC,73 0x08ED,43 0x08EE,6 0x08EF,6,bookingignorereq,2 0x08F0,6 0x08F1,6,bookingjoinpartyreq,2 0x08F2,36 0x08F3,-1 0x08F4,6 0x08F5,-1,bookingsummonmember,2:4 0x08F6,22 0x08F7,3 0x08F8,7 0x08F9,6 0x08FA,6 0x08FB,6,bookingcanceljoinparty,2 0x0907,5,moveitem,2:4 0x0908,5 0x08D7,28,battlegroundreg,2:4 //Added to prevent disconnections 0x08CF,10 //Amulet spirits 0x0977,14 //Monster HP Bar 0x0916,26,guildinvite2,2 0x0844,2,cashshopopen,0 0x084a,2,cashshopclose,0 0x08c9,4,cashshopitemlist,0 0x0848,-1,cashshopbuy,2:4:6:10 Hexed: 2012-04-10aRagexe.exe
  20. Worst

    Rates

    I wonder how I let my server with rates 1k/1k/500x
  21. Jasc Hello, I would like some help on the command @ autosell I put the script on my server but how do I work Added the npc and added in scripts_custom.conf I tried using @ autosell, autosellid @, @ autoselling and none worked please help me
  22. solved
  23. How to block groupid level 1 use this item: 22032,Ticket_Vip,Ticket Vip #15,0,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "ticket15"; },{},{}
  24. solved
×
×
  • Create New...