Jump to content

Kei

Members
  • Content Count

    101
  • Joined

  • Last visited

Posts posted by Kei


  1. i have this patch from annieruru but i'm having an error

     

     

    npc.c: In function 'npc_read_event_script':npc.c:4135: error: 'struct Script_Config' has no member named 'stat_calc_event_name'

     

     

    heres the script

     

     

    {"Stat Calc Event",script->config.stat_calc_event_name},

     

    i dont know whats the problem is


  2.  

    You could always use bonuses to alter in certain ways a player interact with other races (from doc/item_bonus.txt with some modifications, I changed some variable names to "default" them)

    n: 	0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,	5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon, 	10=Boss monster, 11=Other than (normal monster) boss monster(Check db/mob_race2_db.txt)bonus bIgnoreDefRace,n;			Disregard DEF against enemies of race nbonus bIgnoreMDefRace,n;		Disregard MDEF against enemies of race nbonus bDefRatioAtkRace,n;		Does more damage depending on monster Defense against race n (defense disregard)bonus2 bAddRace,n,x;            +x% physical damage against race nbonus2 bMagicAddRace,n,x;       +x% magical damage against race nbonus2 bSubRace,n,x;            +x% damage reduction against race nbonus2 bIgnoreMdefRate,n,x;          Disregard x% of the target's MDEF if the target belongs to race n;bonus3 bAddMonsterDropItem,x,n,y;	Adds a y/100% chance for item x to be dropped, when killing any monster of race n.					If 'y' is negative value, then it's a part of formula						chance = -y*(killed_mob_level/10)+1bonus2 bCriticalAddRace,n,r;      Critical + r vs. enemies of race nbonus2 bAddRace2,n,x;             Increase damage by x% vs. enemies of race n					y:	0=Don't show damage 1=Show damagebonus2 bExpAddRace,n,x;         Increase exp gained by x% vs. enemies of race nbonus2 bSPGainRace,n,x;         When killing a monster of race n by physical attack gain x amount of spbonus2 bSubRace2,n,x;           Damage x% reduction from enemies of race nbonus2 bAddMonsterDropChainItem,x,n;	Able to get item of chain type x (only constant applicable) when you kill a monster of race nbonus2 bWeaponComaRace,n,y;		y/100% chance to cause Coma when attacking a monster of race n with a normal attackbonus2 bIgnoreDefRate,n,x;		Disregard x% of the target's DEF if the target belongs to race n;bonus3 bHPDrainRateRace,n,r,x;		Adds a r/10% chance to receive x% of damage dealt as HP from a monster of race n with normal attack.bonus3 bSPDrainRateRace,n,r,x;		Adds a r/10% chance to receive x% of damage dealt as SP from a monster of race n with normal attack.bonus2 bHPDrainValueRace,n,x;		Heals +x HP when attacking a monster of race r with normal attack.bonus2 bSPDrainValueRace,n,x;		Heals +x SP when attacking a monster of race r with normal attack.bonus2 bHPGainRaceAttack,n,x;		Heals x HP when attacking n Race on every hitbonus2 bSPGainRaceAttack,n,x;		Heals x SP when attacking n Race on every hit
    If you really need a source mod you could always ask for a new bonus that alters a player race, if you want so you can post in this topic...

     

    i think this one is for bonus and not will change the race of the player.. what i need is a source(i think) that will change the race of the player


  3. what command can i put instead of bonu_script?

     

    btw heres the whole script

     

     

    prontera,150,180,4	script	Slayer Title	54,{	mes "Would you like to become Dragon Slayer or Demon Slayer?";	next;	if ( select ( "Yes", "No" ) == 2 ) {		mes "Very well, I shall be here if you change your mind.";		close;	}	mes "Select what you want to become";	.@s = select( "Dragon Slayer", "Demon Slayer" ) -1;	if ( countitem(7777) ) {		delitem 7777, 1;		atcommand "@fakename ["+ .title$[.@s] +"] "+ strcharinfo(0);		bonus_script "{ bonus bStr,5000; }", .buff_last, 8;		addtimer .buff_last * 1000, strnpcinfo(0) +"::Onresettitle";		mes "Congrats You've become "+ .title$[.@s];		player_title$ = gettimetick(2) +"#"+ .@s;	}	else {		mes "You don't have any requirements for Dragon Slayer or Demon Slayer.";		mes "Come back when you get one.";	}	close;OnInit:	setarray .title$, "Dragon Slayer", "Demon Slayer";	.buff_last = 60; // last 10 seconds	end;OnPCLoginEvent:	if ( player_title$ == "" ) end;//	dispbottom player_title$ +"~"+ gettimetick(2);	explode .@player_title$, player_title$, "#";	.@time = atoi( .@player_title$[0] );	.@title = atoi( .@player_title$[1] );	if ( .@time < gettimetick(2) ) {		.@timeleft = gettimetick(2) - .@time;		atcommand "@fakename ["+ .title$[.@title] +"] "+ strcharinfo(0);		bonus_script "{ bonus bStr, 5000; }", .@timeleft, 8;		addtimer .@timeleft * 1000, strnpcinfo(0) +"::Onresettitle";	}	else		player_title$ = "";	end;Onresettitle:	atcommand "@fakename";	player_title$ = "";	end;}

  4.  

    no. simply add that like this

    OnPCLoginEvent:	if ( !#dragonslayer ) end;		if ( #dragonslayer > gettimetick(2) )			atcommand "@fakename [Dragon Slayer] "+ strcharinfo(0);		else			atcommand "@fakename";OnTimer60000: // check every 1 min	stopnpctimer;		if ( #dragonslayer > gettimetick(2) )			atcommand "@fakename [Dragon Slayer] "+ strcharinfo(0);		else			atcommand "@fakename";	initnpctimer;	end;

    thanks but i still have problem.. theres still remaining time then i logout and login .. its still continue the fakename even the time over 1min..


  5. i have a problem with this script.. it didn't get back my original name after 1minute and after 1minute i need to logout to return my name to its original

     

    heres the code

     

    -	script	login	-1,{OnPCLoginEvent:	if ( !#dragonslayer ) end;	 if ( #dragonslayer > gettimetick(2) )	atcommand "@fakename [Dragon Slayer] "+ strcharinfo(0);	else	atcommand "@fakename"; } -	script	kjfhsdfkjhsd	-1,{OnPCStatCalcEvent:    if ( #dragonslayer > gettimetick(2) )         bonus bStr,100;    end;} prontera,150,150,4	script	Dragon Slayer	54,{	mes "Would you like to become Dragon Slayer or Demon Slayer?";	next;	switch(select("Yes:No.")) {	case 1:		mes "Select what you want to become";		switch(select("Dragon Slayer:Demon Slayer")) {		case 1:		if(countitem(7777) > 0) {		delitem 7777,1;		atcommand "@fakename [Dragon Slayer] "+ strcharinfo(0);		set #dragonslayer, gettimetick(2) + 60;		addtimer 60000, strnpcinfo(0)+"::Ontitle";		close;		Ontitle:		atcommand "@fakename";		end;		}		else {		mes "You don't have any requirements for Dragon Slayer or Demon Slayer.";		mes "Come back when you get one.";		close;		}				case 2:		if(countitem(7778) > 0) {		delitem 7778,1;		atcommand "@fakename [Demon Slayer] "+ strcharinfo(0);		mes "Congrats You've become Demon Slayer";		close;		}		else {		mes "You don't have any requirements for Dragon Slayer or Demon Slayer.";		mes "Come back when you get one.";		close;		}		}	 case 2:		mes "Very well, I shall be here if you change your mind.";		close;		}}

  6. i have this patch from annieruru but i'm having an error

     

    when i recompile i have this warning 

     

    status.c: In function 'status_calc_pc_':status.c:2460: warning: implicit declaration of function 'npc_script_event'

     

    this is the script i'm having to have the stats but i don't get any

     

    -	script	kjfhsdfkjhsd	-1,{OnPCStatCalcEvent:    if ( strcharinfo(3) == "prontera" ) // permanently increase 100 str as long as staying in prontera        bonus bstr, 100;    if ( strcharinfo(0) == "Admin" ) // permanently increase 200 agi if the player name Annieruru (me xD)        bonus bagi, 200;    end;}

    OnPCStatCalcEvent.patch


  7. i try to add time on fakename but i don't know if its correct .. i want it to have a fakename for 10secs for test then after 10secs it will back to normal

     

     

    prontera,150,150,4	script	Dragon Slayer	54,{	mes "Would you like to become Dragon Slayer or Demon Slayer?";	next;	switch(select("Yes:No.")) {	case 1:		mes "Select what you want to become";		switch(select("Dragon Slayer:Demon Slayer")) {		case 1:		if(countitem(7777) > 0) {		delitem 7777,1;		addtimer 10000, strnpcinfo(0)+"::Ontitle";		Ontitle:		atcommand "@fakename [Dragon Slayer] "+ strcharinfo(0);		close;		}		else {		mes "You don't have any requirements for Dragon Slayer or Demon Slayer.";		mes "Come back when you get one.";		close;		}				case 2:		if(countitem(7778) > 0) {		delitem 7778,1;		atcommand "@fakename [Demon Slayer] "+ strcharinfo(0);		mes "Congrats You've become Demon Slayer";		close;		}		else {		mes "You don't have any requirements for Dragon Slayer or Demon Slayer.";		mes "Come back when you get one.";		close;		}		}	 case 2:		mes "Very well, I shall be here if you change your mind.";		close;		}}
×
×
  • Create New...

Important Information

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