Forum

> > CS2D > Scripts > [RELEASED] Achievements and Statistics Script
Forums overviewCS2D overview Scripts overviewLog in to reply

English [RELEASED] Achievements and Statistics Script

262 replies
Page
To the start Previous 1 212 13 14 Next To the start

Poll Poll

Do you like the idea of the script?

Only registered users are allowed to vote
No, it is nothing new
4.17% (3)
Yes
95.83% (69)
72 votes cast

old Re: [RELEASED] Achievements and Statistics Script

mrc
User Off Offline

Quote
AddAchievement("Forest Ranger", GAMEMODE_ALL,"gfx/stats/a/palm.png",{"Killing Enemy with AWP" ,"while camping under palm" },"PalmKill")


This achievement doesn't work for me, it works? '-'

old Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
Maybe you changed something? It does work for me.

The Hard Way - to kill an enemy which is in a fow for you. Means you are not able to see him at that moment.

I think this error happens when you are using wrong achievement name:

1
OpenUnlockAchievement(id,name)
edited 1×, last 16.12.15 12:12:09 am

old Re: [RELEASED] Achievements and Statistics Script

mrc
User Off Offline

Quote
Off-screen kill counts? Maybe I did some sh*t idk. I made almost ~50 new achievements and they work... :v damn

I didn't changed anything in the code:

1
AddAchievement("Forest Ranger", GAMEMODE_ALL,"gfx/stats/a/palm.png",{"Killing Enemy with AWP" ,"while camping under palm" },"PalmKill")

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- Under The Palm
function palmKillFunction(id,v,w)
	if (w == 35) then
		local list = entitylist()
		for _,e in pairs(list) do
			local t = entity(e.x,e.y,"int0")
			if (entity(e.x,e.y,"typename") == "Env_Object")  then  -- if tree (t=1) needs more distance 
				local x =player(id,"x")
				local y = player(id,"y")
				if (t == 0) then
					if (distance(x,y,e.x * 32,e.y * 32) < 30) then
						OpenUnlockAchievement(id,"PalmKill")
						return
					end
				end
			end
		end
	end
end
edited 1×, last 16.12.15 12:15:33 am

old Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
So if you comment or delete this line there is no prolem?
1
OpenUnlockAchievement(id,"PalmKill")

Lua stacktrace that you gave says that there is something else wrong. Not this achievement. part 2 achievements 48 line - first blood achievement.

Also probably you don't know if you remove AddAchievement function, it doesn't remove all related functions to that achievement. Probably you just don't really know what you are doing.

old Re: [RELEASED] Achievements and Statistics Script

mrc
User Off Offline

Quote
I'm reworking from the scratch.

How MVP works? This doesn't do much.

1
2
3
4
5
6
7
8
9
10
11
-- Who Let The Doge Out 

function WhoLetTheDogeOutRoundEnd(id)
	if GetUserValue(id,"MVP") > 4 then
		OpenUnlockAchievement(id,"WhoLetTheDogeOut")
	end
end

function WhoLetTheDogeOutRoundProgress(id)
	return(GetUserValue(id,"MVP") / 5)
end
edited 3×, last 17.12.15 03:27:09 am

old Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
Final script version is available in the server right now
[TAB] Achievements 81.30.156.51:10020

100 Achievements in total, many fixes and performance updates.
edited 2×, last 17.12.15 10:37:35 am

old Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
New version is up on [TAB] Achievements Server
Many new achievements, flag location updates.
Lots of shit actually. I started working on a new feature of the script as well. It's called "Challenges"

[TAB] The Achievements 81.30.156.51:10020

I probably won't add more achievements, but challenges. This is going to be more fun.

IMG:https://s13.postimg.org/m4avw70gn/post.png
edited 2×, last 26.12.15 10:13:39 pm
To the start Previous 1 212 13 14 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview