-
Posts
505 -
Joined
-
Days Won
8
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Technoken
-
Do you already have a live server running with character name that has 4 letters? If not you can just diff a new client on nemo and UNBUTTON "Disable 4 Letter Character Name Limit" If yes you can try to create a script that let's the players rename their character that has 4 letters and below. Try this and let me know if it works - script namelengthchk -1,{ OnPCLoginEvent: OnPCStatCalcEvent: OnRetry: .@charname$ = strcharinfo(0); if( getstrlen(.@charname$) > 4 )end; mes "Please rename your character,"; mes "Enter new name:"; input .@newname$; if( getstrlen(.@newname$) < 4 || getstrlen(.@newname$) > 23 ){ mes "You cannot enter less than minimum of 4 and greater than maximum of 23 characters."; goto OnRetry; } .@gid = getcharid(2); if( .@GID ){ mes "Please leave your guild first before you change name."; goto OnRetry; } query_sql "SELECT `name` FROM `char` WHERE `name` = '"+.@newname$+"'",.@existing$; if( .@newname$ == .@existing$){ mes "Name already exists."; goto OnRetry; } query_sql("UPDATE `name` FROM `char` SET `name`='"+.@newname$+"' WHERE `name`='"+strcharinfo(0)+"'"); next; mes "Please relog for the changes to be applied."; mes "signing out...."; sleep2 3000; atcommand "@kick " +strcharinfo(0); end; }
-
What client are you using? Are you sure you put the correct view id?
-
What item id are you using? Try to use item id not higher than 32000
-
Better use Packet Obfuscation and use GIT not SVN since rathena doesn't support it anymore
-
Full Chemical Protection Problem :(
Technoken replied to Isolate's topic in Dito mag request ng Script at Database
Try mo to find and change this line on src/map/skill.c from // Full Chemical Protection case CR_FULLPROTECTION: { unsigned int equip[] = {EQP_WEAPON, EQP_SHIELD, EQP_ARMOR, EQP_HEAD_TOP}; int i_eqp, s = 0, skilltime = skill_get_time(skill_id,skill_lv); for (i_eqp = 0; i_eqp < 4; i_eqp++) { if( bl->type != BL_PC || ( dstsd && pc_checkequip(dstsd,equip[i_eqp]) < 0 ) ) continue; sc_start(src,bl,(sc_type)(SC_CP_WEAPON + i_eqp),100,skill_lv,skilltime); s++; } to // Full Chemical Protection case CR_FULLPROTECTION: { unsigned int equip[] = {EQP_WEAPON, EQP_SHIELD, EQP_ARMOR, EQP_HEAD_TOP}; int i_eqp, s = 0, skilltime = skill_get_time(skill_id,skill_lv); for (i_eqp = 0; i_eqp < 4; i_eqp++) { if( bl->type != BL_PC ) continue; if(tsc->data[SC_STRIPWEAPON + i_eqp]) status_change_end(bl, (sc_type)(SC_STRIPWEAPON + i_eqp), -1 ); sc_start(src,bl,(sc_type)(SC_CP_WEAPON + i_eqp),100,skill_lv,skilltime); s++; } -
If you're talking about the message when you type '@go' try to edit it in conf/help.txt go: "Params: <city name|number>\n" "Warps you to a city.\n" " -3: (Memo point 2) 14: louyang 31: mora\n" " -2: (Memo point 1) 15: start point 32: dewata\n" " -1: (Memo point 0) 16: prison/jail 33: malangdo island\n" " 0: prontera 17: jawaii 34: malaya port\n" " 1: morocc 18: ayothaya 35: eclage\n" " 2: geffen 19: einbroch\n" " 3: payon 20: lighthalzen\n" " 4: alberta 21: einbech\n" " 5: izlude 22: hugel\n" " 6: aldebaran 23: rachel\n" " 7: xmas (lutie) 24: veins\n" " 8: comodo 25: moscovia\n" " 9: yuno 26: midgard camp\n" " 10: amatsu 27: manuk\n" " 11: gonryun 28: splendide\n" " 12: umbala 29: brasilis\n" " 13: niflheim 30: el dicastes\n" For your last question just add a mapflag nowarpto splendide mapflag nowarpto
-
Compilation warnings on Centos, how to get rid of them?
Technoken posted a question in Source Support
I'm currently having these warnings on Centos 6 when I recompile. But on windows I didn't get any warning This warning is from the 'flag' at Shop to disable Discount & Overcharge npc.c: In function ‘npc_parse_shop’: npc.c:2674: warning: ‘id’ may be used uninitialized in this function nd->u.shop.count = 0; while ( p ) { unsigned short nameid2, qty = 0; int value; LINE 2670 struct item_data* id; bool skip = false; if( p == NULL ) break; switch(type) { case NPCTYPE_MARKETSHOP: #if PACKETVER >= 20131223 if (sscanf(p, ",%6hu:%11d:%6hu", &nameid2, &value, &qty) != 3) { // Set shop flag [Cydh] if (nameid2 != 0) { ShowInfo("Shop at '"CL_WHITE"%s#L%d"CL_RESET"' Discount: "CL_WHITE"%s"CL_RESET", Overcharge: "CL_WHITE"%s"CL_RESET".\n", filepath, strline(buffer,start-buffer), nameid2&1 ? "NO" : "YES", nameid2&2 ? "NO" : "YES"); nd->u.shop.flag = (unsigned char)nameid2; } if (!nd->u.shop.flag) { ShowError("npc_parse_shop: (MARKETSHOP) Invalid item definition in file '%s', line '%d'. Ignoring the rest of the line...\n * w1=%s\n * w2=%s\n * w3=%s\n * w4=%s\n", filepath, strline(buffer,start-buffer), w1, w2, w3, w4); skip = true; } } #endif break; default: if (sscanf(p, ",%6hu:%11d", &nameid2, &value) != 2) { // Set shop flag [Cydh] if (nameid2 != 0) { ShowInfo("Shop at '"CL_WHITE"%s#L%d"CL_RESET"' Discount: "CL_WHITE"%s"CL_RESET", Overcharge: "CL_WHITE"%s"CL_RESET".\n", filepath, strline(buffer,start-buffer), nameid2&1 ? "NO" : "YES", nameid2&2 ? "NO" : "YES"); nd->u.shop.flag = (unsigned char)nameid2; } if (!nd->u.shop.flag) { ShowError("npc_parse_shop: Invalid item definition in file '%s', line '%d'. Ignoring the rest of the line...\n * w1=%s\n * w2=%s\n * w3=%s\n * w4=%s\n", filepath, strline(buffer,start-buffer), w1, w2, w3, w4); skip = true; } } break; } This one is from bOneShootOneKill mod pc.c: In function ‘pc_bonus’: pc.c:3105: warning: statement with no effect pc.c: In function ‘pc_bonus2’: pc.c:3804: warning: statement with no effect pc.c:3818: warning: statement with no effect 3102 case SP_SUB_ONESHOOTONEKILL: // [Cydh] 3103 if (sd->state.lr_flag != 2) { 3104 sd->bonus.sub_oneshootonekill += val; 3105 cap_value(sd->bonus.sub_oneshootonekill,-10000,10000); 3106 } 3107 break; //---------------------------------------------------------------------- 3800 for (i = 0; i < len; i++) { 3801 if (sd->oneshootonekill_mob[i].mob_id == type2) { 3802 sd->oneshootonekill_mob[i].rate += val; 3803 isAdded = true; 3804 cap_value(sd->oneshootonekill_mob[i].rate, -10000, 10000); 3805 break; 3806 } 3807 } //------------------------------------------------------------------------- 3816 sd->oneshootonekill_mob[i].mob_id = type2; 3817 sd->oneshootonekill_mob[i].rate = val; 3818 cap_value(sd->oneshootonekill_mob[i].rate, -10000, 10000); 3819 } EDIT: So here's what I did to get rid of these warnings On npc.c, I replaced struct item_data* id; with struct item_data* id = itemdb_exists(nameid2); and on pc.c I replaced these lines: cap_value(sd->bonus.sub_oneshootonekill,-10000,10000); to sd->bonus.sub_oneshootonekill = cap_value(sd->bonus.sub_oneshootonekill,-10000,10000); cap_value(sd->oneshootonekill_mob.rate, -10000, 10000); to sd->oneshootonekill_mob.rate = cap_value(sd->oneshootonekill_mob.rate, -10000, 10000); I hope somehow could correct me if I did it wrong, since I just know little about src. -
Extended Vending System [August 2016 | Renewal, Pre Renewal]
Technoken replied to NilDigit's topic in Source Releases
What hash are you using? I'm currently having problems with extended vending system. I've posted it here LINK -
Any solution with this? After I updated to Git Hash: 9b1b7b1 , i'm having these compile error and warnings. 1>..\src\map\skill.c(7433): error C2065: 'TABLE_CART_' : undeclared identifier 1>..\src\map\skill.c(7433): warning C4047: 'function' : 's_storage *' differs in levels of indirection from 'int' 1>..\src\map\skill.c(7433): warning C4024: 'intif_storage_save' : different types for formal and actual parameter 2 I think it's because of the updates on Git Hash: ade1b17 Any help? thank you!
-
(SOLVED) Refine NPC show wrong equip type
Technoken replied to rakuzas's question in Scripting Support
Are you using the latest git? Try to update your git or use this one -> https://github.com/rathena/rathena/blob/master/npc/merchants/refine.txt -
This issue only occurs on XAMPP. So maybe it's because of xampp. try to migrate and see if it still happens
-
Are you using XAMPP?
-
LOL!! Oppressive Overlord
-
It's Technoken anyways im glad to help.
-
What do you mean by "a way to exchange the free coupon cash"?
-
Check this links https://github.com/zackdreaver/ROenglishPRE https://github.com/zackdreaver/ROenglishRE
-
Yes. Just edit these. They also have the guide, just read them and you'll be able to follow it. // ----------------------------------------------------------- // Basic shop settings. // ----------------------------------------------------------- set .Announce,1; // Announce quest completion? (1: yes / 0: no) set .ShowSlot,1; // Show item slots? (2: all equipment / 1: if slots > 0 / 0: never) set .ShowID,0; // Show item IDs? (1: yes / 0: no) set .ShowZeny,0; // Show Zeny cost, if any? (1: yes / 0: no) set .MaxStack,100; // Max number of quest items purchased at one time. // ----------------------------------------------------------- // Points variable -- optional quest requirement. // setarray .Points$[0],"<variable name>","<display name>"; // ----------------------------------------------------------- setarray .Points$[0],"#CASHPOINTS","Cash Points"; // ----------------------------------------------------------- // Shop IDs -- to add shops, copy dummy data at bottom of file. // setarray .Shops$[1],"<Shop 1>","<Shop 2>"{,...}; // ----------------------------------------------------------- setarray .Shops$[1],"Headgears","Weapons","Other"; // ----------------------------------------------------------- // Quest items -- do NOT use a reward item more than once! // Add(<shop ID>,<reward ID>,<reward amount>, // <Zeny cost>,<point cost>, // <required item ID>,<required item amount>{,...}); // ----------------------------------------------------------- Add(1,5022,1,0,0,7086,1,969,10,999,40,1003,50,984,2); Add(1,5032,1,0,0,1059,250,2221,1,2227,1,7063,600); Add(1,5027,1,0,0,2252,1,1036,400,7001,50,4052,1); Add(1,5045,1,0,0,2252,1,1054,450,943,1200); Add(2,1224,1,0,0,7297,30,969,10,999,50,714,10); Add(2,1225,1,0,0,7292,30,969,10,999,50,714,10); Add(3,531,1,3,0,512,1,713,1); Add(3,532,1,3,0,513,1,713,1); Add(3,533,1,3,0,514,1,713,1); Add(3,534,1,3,0,515,1,713,1); // -----------------------------------------------------------
-
I suggest that you still use the latest git for server stability and support. Plus you can help the developers if you encountered new bugs. Just disable the items, mobs, maps, and features that you don't want to use.
-
You can use Euphy's Quest Shop Just edit the configuration.
-
Here https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L2494
-
This might help you EQI_ACC_L (0) - Accessory 1 EQI_ACC_R (1) - Accessory 2 EQI_SHOES (2) - Footgear (shoes, boots) EQI_GARMENT (3) - Garment (mufflers, hoods, manteaux) EQI_HEAD_LOW (4) - Lower Headgear (beards, some masks) EQI_HEAD_MID (5) - Middle Headgear (masks, glasses) EQI_HEAD_TOP (6) - Upper Headgear EQI_ARMOR (7) - Armor (jackets, robes) EQI_HAND_L (8) - Left hand (weapons, shields) EQI_HAND_R (9) - Right hand (weapons) EQI_COSTUME_HEAD_TOP (10) - Upper Costume Headgear EQI_COSTUME_HEAD_MID (11) - Middle Costume Headgear EQI_COSTUME_HEAD_LOW (12) - Lower Costume Headgear EQI_COSTUME_GARMENT (13) - Costume Garment EQI_AMMO (14) - Arrow/Ammunition EQI_SHADOW_ARMOR (15) - Shadow Armor EQI_SHADOW_WEAPON (16) - Shadow Weapon EQI_SHADOW_SHIELD (17) - Shadow Shield EQI_SHADOW_SHOES (18) - Shadow Shoes EQI_SHADOW_ACC_R (19) - Shadow Accessory 2 EQI_SHADOW_ACC_L (20) - Shadow Accessory 1 the equipment slots has been changed. So you need to replace them with the updated one. e.g change getequipisequiped(2) == 0 )?"":"Armor [ ^4EEE94"+getequipname(2)+"^000000 ]", to getequipisequiped(7) == 0 )?"":"Armor [ ^4EEE94"+getequipname(7)+"^000000 ]", PS: Please put a long npc script inside a code box next time, and I think it would be nice if you open another thread for another problem.
-
Lol not poporing Here https://github.com/rathena/rathena
-
what is this built-in tarot card effect?
Technoken replied to xlaws27's question in Client-side Support
Can you explain it further? -
Are you using the latest GIT? Try to use this npc script https://github.com/rathena/rathena/blob/master/npc/custom/card_remover.txt