Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. Can you provide us the sql table for testing purpose ?
  2. Make a loop with $@partymembercount and use attachrid to give the points to the party member
  3. 5 hours <=> 300 mins <=> 18000 secs OnTimer18000000: // delay1 = 18000000 ms (300 min) Delay 2: sleep rand(0,1)*60000; // 0 to 1 minute
  4. Change the delay to 0 ...<monster name>%TAB%<mob id>,<amount>,<delay1>,<delay2>,<event> Change the coordinates to 0 to randomize the spawn <map name>,<x>,<y>,<xs>,<ys>%TAB%...
  5. 1/ Make a map with the name 06guild_09, 06guild_10 etc.. starting to 09. 2/ Add your map in the menu of the script (follow the typo of the menu). set .@room, select("MVP Room 1 ["+ getmapusers("06guild_01") +"]", "MVP Room 2 ["+ getmapusers("06guild_02") +"]", "MVP Room 3 ["+ getmapusers("06guild_03") +"]", "MVP Room 4 ["+ getmapusers("06guild_04") +"]", "MVP Room 5 ["+ getmapusers("06guild_05") +"]", "MVP Room 6 ["+ getmapusers("06guild_06") +"]", "MVP Room 7 ["+ getmapusers("06guild_07") +"]", "MVP Room 8 ["+ getmapusers("06guild_08") +"]"); 3/ Add the duplicate and the mapflag of your(s) map(s) at the end of the script 06guild_09,49,49,4 duplicate(MVP Summoner) MVP Summoner#9 116 06guild_09 mapflag nowarpto 06guild_09 mapflag nomemo 06guild_09 mapflag noteleport 06guild_09 mapflag nosave SavePoint 06guild_09 mapflag nopenalty
  6. trunk/npc/re/mobs/dungeons/lhz_dun.txt Change the time lhz_dun04,0,0,0 script mvp_lhz_dun04 -1,{ OnTimer6000000: // delay1 = 6000000 ms (100 min) stopnpctimer; sleep rand(0,30)*60000; // 0 to 30 minutes
  7. /* CREATE TABLE IF NOT EXISTS `rebirth_system` ( `account_id` int(11) unsigned NOT NULL default '0', `name` varchar(255) NOT NULL DEFAULT 'NULL', `num_rebirth` int(11) unsigned NOT NULL default '0', `last_ip` varchar(100) NOT NULL default '', PRIMARY KEY (`account_id`) ) ENGINE=MyISAM; */ prontera,150,170,5 script Spec 833,{ function checkItem; // check if player have all item required function colorItemrequired; // color the text. Red : not enough item, green otherwise function deleteItem; // delete all items required function displayItemneed; // display all items need at start function getItemReward; // give the items reward function weightreq; // check if your current weight is highter than weight high novice .@eac = eaclass(); if ( num_rebirth == .reset_max ) { mes "You can only rebirth x"+ .reset_max +"."; emotion e_gasp; close; } else if( NextJobExp || NextBaseExp || !( .@eac&EAJL_2 ) || !Upper ) { mes "You must be rebirth max level/max job level."; close; } mes "Items need :"; displayItemneed(); next; switch( select( "^777777~ Rebirth", "~ Informations", "~ Good bye^000000" ) ) { case 1: weightreq(); checkItem(); deleteItem(); break; case 2: mes "You can only rebirth ^ff0000x"+ .reset_max +"^000000. You already rebirth ^ff0000x"+ num_rebirth +"^000000."; mes "Each rebirth you get ^ff0000"+ .num_status +"^000000 status points and after ^ff0000"+ .change_reward +"^000000 rebirth, you get only some items."; close; case 3: mes "Bye."; close; } num_rebirth += 1; if ( Upper ) { // just in case the user change the setting... lastJob = roclass( .@eac&EAJ_UPPERMASK ); jobchange Job_Novice_High; } else jobchange Job_Novice; resetlvl 1; if ( num_rebirth < .change_reward ) StatusPoint = StatusPoint + .num_status * num_rebirth; else getItemReward(); query_sql "insert into `rebirth_system` values ( "+ getcharid(3) +", '"+ escape_sql( strcharinfo(0) ) +"', '"+ num_rebirth +"', '"+ getcharip() +"' ) on duplicate key update `num_rebirth` = `num_rebirth` +1"; announce "[ Rebirth system ] : "+ strcharinfo(0) +" rebirth for the "+ num_rebirth +" time !", 0; close; function checkItem { for ( ; .@i < .size_item; .@i += 2 ) if ( countitem( .item_req[.@i] ) < .item_req[ .@i+1 ] + num_rebirth ) { mes "You don't have enought "+ getitemname( .item_req[.@i] ) +". ^ff0000["+ countitem( .item_req[.@i] ) +"/"+ ( .item_req[ .@i+1 ] + num_rebirth ) +"]^000000"; close; } if ( num_rebirth >= .change_reward ) if ( .add_item_req[1] + num_rebirth - .change_reward > countitem( .add_item_req[0] ) ) { mes "You don't have enought "+ getitemname( .add_item_req[0] ) +". ^ff0000["+ countitem( .add_item_req[0] ) +"/"+ ( .add_item_req[1] + num_rebirth - .change_reward ) +"]^000000"; close; } return; } function colorItemrequired { if ( countitem( .item_req[ getarg(0) ] ) < .item_req[ getarg(0)+1 ] + num_rebirth ) return "^ff0000"; return "^00ff00"; } function deleteItem { for ( ; .@i < .size_item; .@i += 2 ) delitem .item_req[.@i], ( .item_req[ .@i+1 ] + num_rebirth ); if ( num_rebirth >= .change_reward ) delitem .add_item_req[0], ( .add_item_req[1] + num_rebirth - .change_reward ); return; } function displayItemneed { for ( ; .@i < .size_item; .@i += 2 ) mes colorItemrequired( .@i ) +" - x"+ ( .item_req[ .@i+1 ] + num_rebirth ) +" "+ getitemname( .item_req[.@i] ); if ( num_rebirth >= .change_reward ) { if ( .add_item_req[1] + num_rebirth - .change_reward > countitem( .add_item_req[0] ) ) .@color$ = "^ff0000"; else .@color$ = "^00ff00"; mes .@color$ +"- x"+ ( .add_item_req[1] + ( num_rebirth - .change_reward ) ) +" "+ getitemname( .add_item_req[0] ); } return; } function getItemReward { for ( ; .@i < .size_reward; .@i += 2 ) getitem .reward[.@i], .reward[ .@i+1 ]; return; } function weightreq { if ( Weight > 20000 ) { mes "You have too much items on you. Your weight will be too high after rebirth."; close; } return; } OnInit: .reset_max = 50; // how much reset max .change_reward = 30; // after 30 rebirth, change reward .num_status = 300; // + X number of status points // item required <item ID>, <number> setarray .item_req, 501, 5, 502, 2, 503, 3; .size_item = getarraysize( .item_req ); // additionnal items after rebirth >> .change_reward // <item ID>, <number> setarray .add_item_req, 601, 1; // rewards <item ID>, <number> setarray .reward, 504, 1; .size_reward = getarraysize( .reward ); end; } EDIT: fix a small typo
  8. -prt_maze03,52,190,5 script Evil Baphomet 1929,{ +prt_maze03,52,190,5 script Evil Baphomet 1929,{ ... -mes "300 Evil Horns", +mes "300 Evil Horns"; ... -menu "Yes",-,No",L_ayaw; +menu "Yes",-,"No",L_ayaw;
  9. moscovia.gat,226,198,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#1 966 askydun.gat,96,113,3 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#2 966 // Kliwa The script try to duplicate a NPC named Ultimate PvP Warper but the original NPC name is PvP Warper nb. : prontera.gat,157,186,3 script PvP Warper 966,{ => must be prontera.gat,157,186,3 script Ultimate PvP Warper 966,{ or change all Ultimate PvP Warper to PvP Warper
  10. When it's not working : - explain what is your problem/error - check your mapserv and report the error/warning Well try this prontera,200,180,5 script Bossnia Test 757,{ if( ( isequipped(5340) || isequipped(5341) || isequipped(5342) || isequipped(5343) || isequipped(5344) || isequipped(5345) ) && Zeny >= 5000000 ) { set Zeny, Zeny - 5000000; warp "bossnia_01",0,0; end; } else mes "You must equip the item first."; close; }
  11. Also change set rentnpcdate,gettimetick(2)+604800; rentnpcdate => @rentnpcdate I'm not sure to understand what you mean. query_sql use synthaxe like mysql
  12. You didn't specify it prontera,200,180,5 script Bossnia Test 757,{ if( ( isequipped(5340) || isequipped(5341) || isequipped(5342) || isequipped(5343) || isequipped(5344) || isequipped(5345) ) && Zeny >= 5000000 ) { Zeny = Zeny - 5000000; warp "bossnia_01",0,0; } else mes "You must equip the item first."; close; }
  13. Try to increase max quest db in src/common/mmo.h #define MAX_QUEST_DB 2400 //Max quests that the server will load
  14. '"1"', "@rentnpcdate")"; => '1', "+ @rentnpcdate +")";
  15. For the bitmask maybe - 1: Only Full Heal - 2: Only Revive - 4: Party/Guild Map Only (must specify argument 4) and by default revive_flag = 3 Yeah maybe it's less confusing with char id, party id and guild id in argument 2 for type 0-2 ?
  16. oO I though the player should wear this set prontera,200,180,5 script Bossnia Test 757,{ if( ( isequipped(5340) || isequipped(5341) || isequipped(5342) || isequipped(5343) || isequipped(5344) || isequipped(5345) ) && Zeny >= 5000000 ) warp "bossnia_01",0,0; else mes "You must equip the item first."; close; }
  17. Did you make the upgrade ? trunk/sql-files/upgrades/upgrade_svn17080.sql trunk/sql-files/upgrades/upgrade_svn17086.sql
  18. GTB already block coma. If you don't want block it, find in src/map/status.c if (status_isimmune(bl)) switch (type) { case SC_DECREASEAGI: case SC_SILENCE: case SC_COMA: case SC_INCREASEAGI: Remove case SC_COMA: save and recompile
  19. Capuche

    Tab, space ?

    You can use the 3 (tab, space, or nothing), it doesn't matter. It's a matter of visibility above all
  20. Add delwaitingroom before waitingroom "Top "+$@LadderLength+" Players!",0; // Look on the configuration! => delwaitingroom; waitingroom "Top "+$@LadderLength+" Players!",0; // Look on the configuration!
  21. prontera,200,180,5 script Bossnia Test 757,{ if( isequipped( 5340,5341,5342,5343,5344,5345 ) && Zeny >= 5000000 ) warp "bossnia_01",0,0; else mes "You must equip the item first."; close; }
×
×
  • Create New...