Giter Club home page Giter Club logo

npc_release's People

Contributors

radianford avatar sader1992 avatar secretdataz avatar sigtus avatar stolao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

npc_release's Issues

wrong formula

daily reward:

"0|0|0|0|6608|30",

must give me a item 6608 30 pcs but when i log in it gives me job exp i guess

im using latest rev.

Daily reward v2 .Rest bug

I set the .Rest = 5, the system stills loop the .Rest and I can not received the reward. Please check.

Weapon Mastery System (less code issues, more gameplay-issues =P)

yo!
i love your weapon mastery system, overall it's really great. hence it has 2 minor flaws:

1.) Archbishop's Judgement Set:
the Judgement-set is mainly used for Adoramus-builds (barely see any aspd-ABs using it), but it activates Onslaught, because, well, Judgement-weapon is a mace. would it be possible to add some 'exception-list' to stuff some weapon-IDs in to "force" them using another mastery?
this would also be great for melee-bards (using a berserk-guitar that usually would use Ranged mastery but isn't as useful for that) or some other 'for fun builds'.

2.) Swiftness' Doubleattack
it actually interferes with Assassin's crit builds, especially doubledagger, it often happens to miss a lot because hit is too low but doubleattack triggers.
no idea what would be better. maybe a luck-bonus? some magic evasion? no idea, thought.

Players get some issues in this update of Daily Login Reward

  • Sleep 2 commands make player stuck every they login @FIRST time. need to use @load commands/ teleport

  • Players getting Reset reward after date of calendar is change month, example : in september 30,2017 player get daily of day 7, and npc still have reward until day 15, but in October 1,2017 . Player getting daily reward of day 1.

  • After reset, player doesn't getting nothing reward (Only cut_in show, but player doesn't get anything reward)

Can you fix it??

NPC Daily_Reward

Hello, I'm just going to warn you that NPC Daily_Reward has some silly mistakes, but even fixing it by typing @hourly nothing happens and no error appears on the map-server. Taking advantage, I would like to thank for the great scripts made available, thank you!

Corrected map-server errors script.

//===== EinherjarRO Scripts ================================== 
//= Hourly Rewards
//===== By: ================================================== 
//= Stolao
//===== Current Version: ===================================== 
//= 1.00
//===== Compatible With: ===================================== 
//= rAthena SVN
//===== Description: ========================================= 
//= A reward system for players who play longer
//===== Todo: ================================================
//= Suggestions?
//===== Additional Comments: =================================
//= 1.00 Initial release
//===== Contact Info: ========================================
//= [Stolao] 
//= Email: [email protected]
//============================================================
-	script	Hourly_Rewards	-1,{
OnPCLoginEvent:
	if(.IPCheck){
		query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@LastIp$);
		query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@LastIp$+"'", .@AccountId);
		if(getarraysize(.@AccountId) > .IPCheck){
//			message strcharinfo(0),"[Daily Rewards]: rewards are limited to "+.IPCheck+" per IP sorry.";
			end;
		}
	}
//	if(.MacCheck){
//		query_sql("SELECT last_unique_id FROM `login` WHERE account_id = "+getcharid(3)+"", .@last_unique_id$);
//		query_sql("SELECT account_id FROM `login` WHERE last_unique_id = '"+.@last_unique_id$+"'", .@AccountId2);
//		if(getarraysize(.@AccountId2) > .MacCheck){
//			message strcharinfo(0),"[Daily Rewards]: rewards are limited to "+.MacCheck+" per computer sorry.";
//			end;
//		}
//	}
	if(.Rest) message strcharinfo(0),"[Hourly Rewards]: Rewards are now active. Enjoy!";
	addtimer 3600000,strnpcinfo(3)+"::OnWait";
	end;
OnHourCmnd:
	if(@vending){
		@vending = 0;
		addtimer 3600000,strnpcinfo(3)+"::OnWait";
		end;
	} else if(!@overweight)
		end;
	else	@overweight--;
OnWait:
	deltimer strnpcinfo(3)+"::OnWait";
	if(checkvending() & 2 && .Mode & 32){
		message strcharinfo(0),"[Hourly Rewards]: Venders cannot recive rewards. Please type @hourly to continue.";
		@vending++;
		end;
	}
	if(.Afk_Timeout && checkidle() > .Afk_Timeout){
		message strcharinfo(0),"[Hourly Rewards]: Were AFk for more then "+checkidle()+" seconds, cannot recive rewards. Please type @hourly to continue.";
		@vending++;
		end;
	}
	@hourly++;
	explode(.@XT$,.Rewards$[@hourly++],",");
	for(.@x = 0; .@x < getarraysize(.@XT$); .@x++)
		.@TT[.@x] = atoi(.@XT$[.@x]);
	if(.Mode & 1 && .@TT[4] > 0){
		for(.@x = 4; .@x <= getarraysize(.@TT) - 1 ; .@x += 2){
			.@itms[getarraysize(.@itms)] = .@TT[.@x];
			.@qnts[getarraysize(.@qnts)] = .@TT[.@x + 1];
		}
		if(checkweight2(.@itms,.@qnts)){
			for(.@x = 0; .@x < getarraysize(.@itms) && .@x < getarraysize(.@qnts); .@x++){
				if(.Mode & 32)
					getitembound  .@itms[.@x], .@qnts[.@x], .Bound_Mode;
				else	getitem  .@itms[.@x], .@qnts[.@x];
			}
		} else {
			message strcharinfo(0),"[Hourly Rewards]: You cannot carry the prizes, please use storage and type @hourly.";
			@hourly--;
			@overweight++;
			end;
		}
	}
	if(.Mode & 2){
		if(.@TT[0]){
			Zeny += .@TT[0];
			message strcharinfo(0),"[Hourly Rewards]: Recieved "+ .@TT[0] +"z";
		}
		if(.@TT[1]){
			setd getd(.Points$[0]),getd(.Points$[0]) + .@TT[1];
			message strcharinfo(0),"[Hourly Rewards]: Recieved "+ .@TT[1] +" "+.Points$[1];
		}
	}
	if(.Mode & 4 && (.@TT[3] || .@TT[4]))
		getexp .@TT[3], .@TT[4];
	if(.Mode & 8){
		for(.@x = 0; .@x < getarraysize(.BuffInfo); .@x += 4){
			if(#DRewardCon % .BuffInfo[.@x + 1] == 0)
				sc_start .BuffInfo[.@x], .BuffInfo[.@x + 2] * 60000, .BuffInfo[.@x + 3];
		}
	}
	message strcharinfo(0),"[Hourly Rewards]: You have collected your hourly reward, for "+callfunc("F_InsertPlural",#DRewardCon,"hour")+" in a row.";
	addtimer 3600000,strnpcinfo(3)+"::OnWait";
	end;
OnInit:
	// Basic Settings
	//   1: Item | 2: Points | 4: Exp  
	//   8: Gain Buffs Every X Consecutive Hours logged in
	//   16: Bound Items
	//   32: No Rewards ffor Autotraders
	//     (a bit value, e.g. 3 = Items & Points from Multi)
	.Mode = 1|2|16|32;

	// Number of times same IP can recive rewards
	//   0 = unlimited
	.IPCheck = 1;

	// Number of times same Computer (MacAdress) can recive rewards
	//   0 = unlimited
	.MacCheck = 1;

	// AFK Time
	//   How many seconds of idle till no rewards recived
	//   0 = Unlimited
	.Afk_Timeout = 1800;

	// Item Binding Mode
	//0 - All Bound types.
	//1 - Account Bound
	//2 - Guild Bound
	//3 - Party Bound
	//4 - Character Bound
	.Bound_Mode = 1;

	// Point Type
	//   [0] Points earned
	//   [1] Point name in mes
	setarray .Points$,"#KAFRAPOINTS","K-Points";

	// Consecutive Days Buff
	// Each buff contains 4 variables (32 Total Max)
	// <Type>,<Days>,<Duration>,<Rate>, // Buff 1
	// <Type>,<Days>,<Duration>,<Rate>, // Buff 2
	//   ...;
	//
	//  Example: 188,7,45,3
	//    -Every 7th consecutive day logged in Player gains +3 Str for 45 mins
	//
	//  Type is 188, which references which SC_ to use, SC_INCSTR in this example
	//     -For a full list of SC_ visit the db/const.txt
	//  Days is days buff is applied, in this example 7, so every 7th day, 14,21,28....
	//  Duration is buff duration is Minuits, in this example 45 mins
	//  Rate is buff strength, in this example player gains 3 Str
	setarray .BuffInfo
				,260,2,360,1	// Life Insurance for 360 Mins Every 2nd Day
				,198,3,120,10	// +10% Hp for 120 Mins Every 3th Day
				,196,5,120,25	// +25 Flee for 120 Mins Every 5th Day
				,257,7,240,50;	// +50% Exp for 240 Mins Every 7th Day

	// Daily Prize items (max 128 days):
	//   "<Zeny>|<Points>|<BaseExp>|<JobExp>|<itemID-1>|<amount-1>|<itemID-2>|<amount-2>...etc", // Day 1
	//   "<Zeny>|<Points>|<BaseExp>|<JobExp>|<itemID-1>|<amount-1>|<itemID-2>|<amount-2>...etc"  // Day 2
	//   ...;
	// Total length of any days string must be 255 or shorter
	// * If players login longer than the last set
	//   day, they will keep getting the last prize.
	setarray .Rewards$[1],
//		"0,0,0,0,503,5,506,5",			// Day 1: 5 White Potion + 5 Green Potion
//		"100",					// Day 2: 100 Zeny
//		"0,0,0,0,501,5",			// Day 3: 5 Red Potion
//		"0,0,0,0,503,5,506,5",			// Day 4: 5 White Potion + 5 Green Potion
//		"100",					// Day 5: 100 Zeny
//		"0,0,0,0,501,5",			// Day 6: 5 Red Potion
//		"1000",					// Day 7: 100 Zeny
//		"1000",					// Day 8: 100 Zeny
//		"0,0,0,0,503,5,506,5";			// Day 9: 5 White Potion + 5 Green Potion

	// To disable the command '@loginreward' comment the next lines
	// * Needs extra commands for typos
	bindatcmd("hourly",strnpcinfo(3)+"::OnHourCmnd",0,99);
	end;
}

Note: I'm used Hercules.

Warning in Rodex Auto events

Problem: When the Reward method is set to Rodex, at the moment the event finishes the reward isn't delivered.

Workaround: Relogin and the email will be appear.

Error in console:
[Warning]: script:query_sql: Too many columns, discarding last 1 columns.
[Debug]: Source (NPC): Event Information at prontera (164,171)

Typo in iRo Bounty Board Quest

Hello, I noticed in your iRo Bounty Board Quest script that Zenorc (id 1177, lvl 54) is listed as target for Geffen lvl 21-50 while the rewards match those of Poison Spore (id 1077, lvl 26) according to iRo Wiki.

I fixed the issue in my local copy simply by using id 1077 instead of 1177.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.