Jump to content

Alzhea

Members
  • Content Count

    8
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Alzhea

  • Rank
    New Member

Profile Information

  • Gender
    Male
  • Location
    philipines

Recent Profile Visitors

819 profile views
  1. better use quest_db.yml example: - Id: 90000 Title: Custom Quest! Targets: - Mob: PORING Count: 50000 -TimeLimit: +1h ( d - day(s), h - hour(s), mn - minute(s), s - second(s) ) then create a npc that will set/erase/change the quest in player. once the player killed all target monster quest. to check it use checkquest if(checkquest(90000,HUNTING) == 2) { mes "bla bla bla"; erasequest 90000; setquest 900001; OR changequest 90000,900001; set storage_password,1; close; } better read the script_commands.txt for checkquest parameter
  2. it works to me. better check if the script has error when you tried to @joinbg.
  3. 1 - is the minimum. [email protected] - is the maximum. value is depend on your balance from cp_credits table try this.. change input [email protected],1,[email protected]; into input [email protected];
  4. try change OnInit: bindatcmd("joinbg",strnpcinfo(0)+"::OnJoinBG",0,99); end; into OnInit: bindatcmd("joinbg",strnpcinfo(3)+"::OnJoinBG",0,99); end;
  5. @DR4LUC0N i just base that 1 in your script. .sqlu = query_sql( "UPDATE `chain_quest`, SET `variable_storage` = 1 ); if you want to increase the max daily quest just change the 1 in this part into any numbers you desire/max quest per day if ([email protected] >= 1 && [email protected]$ == [email protected]$) { mes "You have already completed this quest today, come back tomorrow"; close; } please try this script not yet tested. CREATE TABLE IF NOT EXISTS `chain_quest` ( `unique_id` int(11) unsigned NOT NULL default '0', `last_ip` varchar(100) NOT NULL default '', `variable_storage` varchar(30) NOT NULL default '', PRIMARY KEY `unique_id` (`unique_id`) KEY `variable_storage` (`variable_storage`) ) ENGINE=MyISAM; prontera,155,181,5 script Chained Quest#1 757,{ .gui = get_unique_id (); [email protected] = query_sql("SELECT `variable_storage`,`last_ip` FROM `chain_quest` WHERE `unique_id` = "+.gui+" LIMIT 1", [email protected], [email protected]$); [email protected] = query_sql("SELECT `last_ip` FROM `login` WHERE `account_id` = "+getcharid(3), [email protected]$); if ([email protected] >= 1 && [email protected]$ == [email protected]$) { mes "You have already completed this quest today, come back tomorrow"; close; } function ChainedQuest; mes "I am a Chained Quest NPC, you can only redo the previous Quest after you have finished all of my Quests."; next; // Quest Setup : // ChainedQuest( Reward,Amount , Required Zeny, {Item1,Amount1,Item2,Amount2,...} ); switch( getd( "Quest"+strnpcinfo(2) ) ){ case 0: ChainedQuest( 5001,1, 0, 607,10 ); case 1: ChainedQuest( 5002,1, 0, 607,20, 608,20 ); case 2: ChainedQuest( 5003,1, 0, 607,30, 608,30, 7539,30 ); // Case 3: ChainedQuest( 5004,1, 0, 607,40, 608,30, 7539,40 ,501,10 ); // Case 4: ChainedQuest( 5005,1, 0, 607,50, 608,30, 7539,50 ,501,10 ,502,10 ); // Case 5: ChainedQuest(....); // Case 6: ChainedQuest(....); default: mes "Congratulation ,You have finished all the Quest i gave you, you may Re-Do if you want."; set getd( "Quest"+strnpcinfo(2) ),0; close; } OnPCLoadMapEvent: showevent 1,0; end; OnClock0000: query_sql( "DELETE FROM `chain_quest` WHERE `variable_storage` = '1'" ); end; function ChainedQuest { for( set [email protected],3; getarg( [email protected],0 ) != 0 ; set [email protected],[email protected] + 2 ){ if( countitem( getarg( [email protected] ) ) < ( getarg( [email protected] + 1 )) ){ mes "[ ^FF0000Part "+( getd( "Quest"+strnpcinfo(2) ) + 1 )+"^000000 ]"; mes "^00FF00_______________________________^000000"; mes "^FF0000Reward^000000 : "+getarg(1)+" x ^0000FF"+getitemname( getarg(0) )+"^000000"; mes "^00FF00_______________________________^000000"; mes "then bring me those items :"; mes "^00FF00_______________________________^000000"; if(getarg(2) == 0) { } else mes ( Zeny < getarg(2) ? "^FF0000":"^0000FF" )+getarg(2)+" Zeny^000000"; for( set [email protected],3; getarg( [email protected],0 ) != 0 ; set [email protected],[email protected] + 2 ){ mes (( countitem(getarg( [email protected] )) < ( getarg([email protected] + 1 )) )? "^FF0000[ "+countitem(getarg([email protected]))+" / "+(getarg([email protected]+1)):"^0000FF[ "+getd( "Quest"+strnpcinfo(2) ) )+" ] "+getitemname(getarg([email protected]))+"^000000 "; } close; } } if( Zeny < getarg( 2 ) ){ mes "You required "+getarg( 2 )+" Zeny."; close; } mes "[ ^FF0000Part "+( getd( "Quest"+strnpcinfo(2) ) + 1 )+"^000000 ]"; mes "Look's like you have collected all"; mes "^FF0000_______________________________^000000"; if(getarg(2) == 0) { } else mes ( Zeny < getarg(2) ? "^FF0000":"^0000FF" )+getarg(2)+" Zeny^000000"; for( set [email protected],3; getarg( [email protected],0 ) != 0 ; set [email protected],[email protected] + 2 ){ mes "^FF0000"+getarg( [email protected]+1 )+" x ^0000FF "+getitemname( getarg( [email protected] ) )+"^000000"; } next; if( select("^0000FFContinue^000000:Cancel") == 2 ){ mes "Okay..as you wish ~ come back again when you do continue it."; close; } for( set [email protected],3; getarg( [email protected],0 ) != 0 ; set [email protected],[email protected] + 2 ){ delitem getarg( [email protected] ),getarg( [email protected] + 1 ); } set Zeny,Zeny - getarg( 2 ); set getd( "Quest"+strnpcinfo(2) ),getd( "Quest"+strnpcinfo(2) ) + 1; mes "You will be rewarded with "; mes "^0000FF_______________________________^000000"; mes "^FF0000"+getarg(1)+"^000000 x ^0000FF"+getitemname( getarg(0) )+"^000000"; mes "^0000FF_______________________________^000000"; getitem getarg(0),getarg(1); if([email protected]) query_sql("UPDATE `chain_quest` SET `variable_storage` = "+([email protected]+1)+" WHERE `unique_id` = "+.gui+" LIMIT 1"); else query_sql( "INSERT INTO `chain_quest` VALUES ("+.gui+", "[email protected]+", 1)"); close; } } prontera mapflag loadevent
  6. @DR4LUC0N try this. prontera,155,181,5 script Chained Quest#1 757,{ .gui = get_unique_id (); [email protected] = query_sql("SELECT `variable_storage` FROM `chain_quest` WHERE `unique_id` = "+.gui+" LIMIT 1", [email protected]); if ([email protected] >= 1) { mes "You have already completed this quest today, come back tomorrow"; close; } function ChainedQuest; mes "I am a Chained Quest NPC, you can only redo the previous Quest after you have finished all of my Quests."; next; // Quest Setup : // ChainedQuest( Reward,Amount , Required Zeny, {Item1,Amount1,Item2,Amount2,...} ); switch( getd( "Quest"+strnpcinfo(2) ) ){ case 0: ChainedQuest( 5001,1, 0, 607,10 ); case 1: ChainedQuest( 5002,1, 0, 607,20, 608,20 ); case 2: ChainedQuest( 5003,1, 0, 607,30, 608,30, 7539,30 ); // Case 3: ChainedQuest( 5004,1, 0, 607,40, 608,30, 7539,40 ,501,10 ); // Case 4: ChainedQuest( 5005,1, 0, 607,50, 608,30, 7539,50 ,501,10 ,502,10 ); // Case 5: ChainedQuest(....); // Case 6: ChainedQuest(....); default: mes "Congratulation ,You have finished all the Quest i gave you, you may Re-Do if you want."; set getd( "Quest"+strnpcinfo(2) ),0; close; } OnPCLoadMapEvent: showevent 1,0; end; OnClock0000: query_sql "TRUNCATE `chain_quest`"; end; function ChainedQuest { for( set [email protected],3; getarg( [email protected],0 ) != 0 ; set [email protected],[email protected] + 2 ){ if( countitem( getarg( [email protected] ) ) < ( getarg( [email protected] + 1 )) ){ mes "[ ^FF0000Part "+( getd( "Quest"+strnpcinfo(2) ) + 1 )+"^000000 ]"; mes "^00FF00_______________________________^000000"; mes "^FF0000Reward^000000 : "+getarg(1)+" x ^0000FF"+getitemname( getarg(0) )+"^000000"; mes "^00FF00_______________________________^000000"; mes "then bring me those items :"; mes "^00FF00_______________________________^000000"; if(getarg(2) == 0) { } else mes ( Zeny < getarg(2) ? "^FF0000":"^0000FF" )+getarg(2)+" Zeny^000000"; for( set [email protected],3; getarg( [email protected],0 ) != 0 ; set [email protected],[email protected] + 2 ){ mes (( countitem(getarg( [email protected] )) < ( getarg([email protected] + 1 )) )? "^FF0000[ "+countitem(getarg([email protected]))+" / "+(getarg([email protected]+1)):"^0000FF[ "+getd( "Quest"+strnpcinfo(2) ) )+" ] "+getitemname(getarg([email protected]))+"^000000 "; } close; } } if( Zeny < getarg( 2 ) ){ mes "You required "+getarg( 2 )+" Zeny."; close; } mes "[ ^FF0000Part "+( getd( "Quest"+strnpcinfo(2) ) + 1 )+"^000000 ]"; mes "Look's like you have collected all"; mes "^FF0000_______________________________^000000"; if(getarg(2) == 0) { } else mes ( Zeny < getarg(2) ? "^FF0000":"^0000FF" )+getarg(2)+" Zeny^000000"; for( set [email protected],3; getarg( [email protected],0 ) != 0 ; set [email protected],[email protected] + 2 ){ mes "^FF0000"+getarg( [email protected]+1 )+" x ^0000FF "+getitemname( getarg( [email protected] ) )+"^000000"; } next; if( select("^0000FFContinue^000000:Cancel") == 2 ){ mes "Okay..as you wish ~ come back again when you do continue it."; close; } for( set [email protected],3; getarg( [email protected],0 ) != 0 ; set [email protected],[email protected] + 2 ){ delitem getarg( [email protected] ),getarg( [email protected] + 1 ); } set Zeny,Zeny - getarg( 2 ); set getd( "Quest"+strnpcinfo(2) ),getd( "Quest"+strnpcinfo(2) ) + 1; mes "You will be rewarded with "; mes "^0000FF_______________________________^000000"; mes "^FF0000"+getarg(1)+"^000000 x ^0000FF"+getitemname( getarg(0) )+"^000000"; mes "^0000FF_______________________________^000000"; getitem getarg(0),getarg(1); query_sql( "INSERT INTO `chain_quest` VALUES ("+.gui+", 1)"); close; } } prontera mapflag loadevent
  7. I hire lykos to create UI, Website Design, Custom job. Quality of Work: 10/10 - they exceed to my expectation in their works Time: 10/10 - I msg in their page and they answer fast. after i send my ideas about my design and etc. in 1 week they send my new UI, Website designs now i am waiting for my custom job. Overall: 11/10 - i recommend s1lykos design. it will give you a awesome quality of works and give you discount for thanking hiring s1lykos design. more project to come for these guy.
  8. i tried your code sir capuche but it's not working in item script
  9. this person is knowledgeable he is a fast worker can contact easily so i recommend technoken to all that who wants to create a own server. he is a trustworthy,friendly developer.
  10. is it possible that when i use 2tg 2hydra in weapon the target will get a damage. but if i use other cards like 4phreeoni in weapon or 1 thanatos 3phreeoni the target will getting heal by the asura? pls help me
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.