-
Posts
196 -
Joined
-
Last visited
-
Days Won
6
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Napster
-
open atcommand.c find static int atkillmonster_sub(struct block_list *bl, va_list ap) { struct mob_data *md; int flag; nullpo_ret(md=(struct mob_data *)bl); flag = va_arg(ap, int); if (md->guardian_data) return 0; //Do not touch WoE mobs! if ( md->market_chat_id ) <--- add this return 0; if (flag) status_zap(bl,md->status.hp, 0); else status_kill(bl); return 1; }
-
you check status.c int status_damage(struct block_list *src,struct block_list *target,int64 dhp, int64 dsp, int walkdelay, int flag) { struct status_data *status; struct status_change *sc; int hp = (int)cap_value(dhp,INT_MIN,INT_MAX); int sp = (int)cap_value(dsp,INT_MIN,INT_MAX); nullpo_ret(target); <--- check this i have test but not crash, but show error in map server
-
yes i know but rAthena not crashed, show error map server status damage check nullpo_retv
-
Script edit to check overweight status before buying
Napster replied to johnbond's question in Scripting Support
try this prt_in,118,37,5 script Vote Shop 868,{ set .@count, query_sql("SELECT `amount` FROM ea_voting WHERE `account_id` = " + getcharid(3), .@VotingPoints); set @VotingPoints, .@VotingPoints; message strcharinfo(0),"You currently have [ "+ @VotingPoints +" ] Vote Points."; message strcharinfo(0),"Vote Points are used to buy from me even if the windows displays 'Z'."; message strcharinfo(0),"You can get Vote Points by Voting from our website "; callshop "Donator_SHOP#03",1; npcshopattach "Donator_SHOP#03"; end; OnBuyItem: getinventorylist; set .@tmp_weight, 0; for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { for(set @j,0; @j < getarraysize(.POD_ITEMS); set @j,@j+2) { if(.POD_ITEMS[@j] == @bought_nameid[@i]) { set @itemcost,(.POD_ITEMS[(@j+1)]*@bought_quantity[@i]); set @totalcost,(@totalcost+@itemcost); set .@tmp_weight, .@tmp_weight +(getiteminfo(@bought_nameid[@i], 6) * @bought_quantity[@i]); break; } } } if (@inventorylist_count > MAX_INVENTORY) { message strcharinfo(0),"Over max inventory"; end; } if ((Weight + .@tmp_weight) > MaxWeight) { message strcharinfo(0),"Over max weight"; end; } set .@count, query_sql("SELECT `amount` FROM ea_voting WHERE `account_id` = " + getcharid(3), .@VotingPoints); set @VotingPoints, .@VotingPoints; if(@totalcost > @VotingPoints) { message strcharinfo(0),"You don't have enough Vote Points. Relog to be able to buy again with correct Vote Points."; end; } else { for(set @i,0; @i < getarraysize(@bought_nameid); set @i,@i+1) { getitem @bought_nameid[@i],@bought_quantity[@i]; query_sql "INSERT INTO `votepointlog` VALUES ( NULL,"+getcharid(3)+",'"+ escape_sql(strcharinfo(0)) +"',"+@bought_nameid[@i]+","+@bought_quantity[@i]+",'KAFRAPOINTS',NOW() )"; } set @VotingPoints,@VotingPoints-@totalcost; query_sql "UPDATE ea_voting SET amount = " + @VotingPoints + " WHERE account_id = " + getcharid(3); message strcharinfo(0),"You now have ["+@VotingPoints+"] Vote Points left. Get more Vote Points by Voting from our website "; } set @totalcost,0; deletearray @bought_nameid[0],128; deletearray @bought_quantity[0],128; sleep2 1000; message strcharinfo(0),"Trade Information is Logged for Security Reason(s). No return no exchange."; end; OnInit: waitingroom strnpcinfo(2) + "" + strnpcinfo(1)+"",0; query_sql "CREATE TABLE IF NOT EXISTS `votepointlog` (`id` int(11) NOT NULL auto_increment,`account_id` int(11) NOT NULL default '0',`name` varchar(30) NOT NULL default '',`item` int(11) NOT NULL default '0', `amount` int(11) NOT NULL default '1',`point` varchar(30) NOT NULL default '', `time` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `char_id` (`account_id`)) ENGINE=MyISAM"; npcshopdelitem "Donator_SHOP#03",677; setarray .POD_ITEMS[0],12210,80,12103,80,12214,80; // Input as many items as you want (item::price) set .table, "ea_voting"; for(set .@i,0; .@i < getarraysize(.POD_ITEMS); set .@i,.@i+2) { npcshopadditem "Donator_SHOP#03",.POD_ITEMS[.@i],.POD_ITEMS[(.@i+1)]; } } - shop Donator_SHOP#03 139,677:100 -
I think this one should be better.. http://hercules.ws/board/topic/7242-market-clone/#entry43920 Some one test for this, I'am no have test, now not free time Credits : [AnnieRuru/Dastgir] hercules Market_clone_1.1_rAthena.patch
-
i will convert to rAthena
-
I will try fixed later next version if found bug please report thank you
-
@Elsa Mist i have test for this no problem i think your checking if you change ID 30000 & 30001 is already 1. check item db ...\db\import-tmpl\item_db.txt // Vending system 30000,Zeny,Zeny,3,,10,10,,,,,,,,,,,,,{},{},{} <-- change you want item id 30001,Cash,Cash,3,,10,10,,,,,,,,,,,,,{},{},{} <-- change you want item id 2. check battle conf ...\battle\feature.conf // Item ID for Zeny. Set to 0 if you don't want use Zeny. item_zeny: 30000 <-- change you want item id // Item ID for Cash. Set to 0 if you don't want use Cash. item_cash: 30001 <-- change you want item id 3. check you data file ...\data\idnum2itemdisplaynametable.txt // Vending system 30000#Zeny# <-- change you want item id 30001#Cash# <-- change you want item id
-
upgrade_extended_vending_item.sql for r17704 check your folder Sql-files/upgrades/upgrade_extended_vending_item.sql my patch include sql file ALTER TABLE `vendings` ADD COLUMN `extended_vending_item` smallint(5) unsigned NOT NULL DEFAULT '0' AFTER `title`;
-
yes sir 128 people $@onlineaid -> accout id player online and $@onlinecount for loop check event script again
-
if mod max_scriptarray over to 128 no problem SCRIPT_MAX_ARRAYSIZE 128 = 128 player online
-
oh yes map server can't load
-
yes i know it work affect getmemberaid bcz mapreg server use for this put variable, but use Memory server increase
-
patch this but i'am not sure won work max_scriptarray.patch
-
@Darkpurple you can post your script npc to use this
-
but no have test for this getmemberaid_r12425.patch
-
you manual diff or apply patch maybe you mod src fail please check again and use last Server svn Ok its done thanks, i just forgot to add this on map.h... CELL_NOCHAT, CELL_MAELSTROM, CELL_ICEWALL, + CELL_PVP, // Addon Cell PVP [Napster] Note: I notice something when you enter the cell it shows 1/999 in the lower left, is it normal? maybe it bug, bcz gm account when use @hiding on/off cell pvp not count user, i'am not sure how to reproduce this ?
-
no you can't change to want but.. if you really want to change open map.h edit to CELL_ICEWALL, CELL_PVP = 15, // Addon Cell PVP [Napster] CELL_CHKICEWALL, // Whether the cell has Ice Wall CELL_CHKPVP = 20, // Whether the cell has PVP [Napster] I found a serious bug, when player dead in cell_pvp, they will be stone status and cannot move. But My delay time is using default same as diff file. I also found that When the buff end, it can moved !!!!! you enable auto buff ? i think this wrong you manual diff or apply patch maybe you mod src fail please check again and use last Server svn
-
no you can't change to want but.. if you really want to change open map.h edit to CELL_ICEWALL, CELL_PVP = 15, // Addon Cell PVP [Napster] CELL_CHKICEWALL, // Whether the cell has Ice Wall CELL_CHKPVP = 20, // Whether the cell has PVP [Napster]
-
@Elsa Mist free time i will create for old svn @Lelouch vi Britannia in line remove + all and edit line to compile again @Elsa Mist for older SVN Compatibility 17704 2014-07-03 02:40:03 https://rathena.svn.sourceforge.net/svnroot/rathena/ ExtendedVendingSystem_1.9.1_r17704.diff
-
move to topic: http://rathena.org/board/topic/98070-extended-cell-pvp-17/
-
[sRC] Cell PvP 1.7 How to use this ? You can enable or disable this feature conf/battle/misc.conf how to create cell pvp How to use auto buff script Add npc script don't edit npc name "deathmatch_core" Change log enjoy! Extended_Cell_PvP_1.7.patch
-
@Darkpurple when free time cleanup for this
-
thank you for report update 1.9.1 : )
-
this original code i implement for thai user Old version & Old svn cell_pvp_v1.3.diff cell_pvp_v1.4.diff cell_pvp_v1.5.diff