Jump to content
  • 0

Achievement system i need a idea


Question

Posted (edited)

hi

 

Someone can tell me the best way to make a achievenment system?

 

It is just tell me i do all the scriping part (without src editting /x  )

 

I call for help because i want to do it, but i dont know how  /heh 

 

/no1


Bumm :c?

Edited by Dynasty

3 answers to this question

Recommended Posts

Posted (edited)

well... is like this:

 

achievement: kill 100 poring, kill 100 fabre, get the max lvl....

 

if u won a 100 achievement you will win a reward for that

 

also you can see you progress (sql i think) 

 

ex:

 -	script	first_login	-1,{
OnInit:
	set .var,1;
	end;
OnPCLoginEvent:
	if((.var ? #fst_login : fst_login) == 1 && Class == Job_Novice && BaseLevel != 1 && JobLevel != 1)
		end;
	set (.var ? #fst_login : fst_login),1;
	set #poring1$,"[Locked]";
	end;
}
  -	script	KillPoring1	-1,{
OnNPCKillEvent:
	if(#poring1$ == "[Locked]"){
	getmapxy(@mapa$,@x,@y,0);
	if(killedrid == 1002) {
		set killpcount,killpcount+1;
		if(killpcount >= 50) {
			set killpcount,0; // Evita que pase de la cantidad maxima.
				dispbottom "Felicidades has desbloqueado Killerporing!";
			set #poring1$,"[Unlocked]";
		attachnpctimer;
        initnpctimer;
		end;
		OnTimer10:
specialeffect2 75;
	cutin "sign_01",2;
		end;
		Ontimer9000:
cutin "",255;
	stopnpctimer;
	detachnpctimer;
			end;
		}
		end;
	}
end;
	}else if(#poring1$ == "[Unlocked]"){
	end;
	}
}

When a player get the achievement (kill x amount of porings) the npc will show a cutin  that you can also still playing when you have the cutin on the screen.. but the thing is how is the best way to do this?

Edited by Dynasty

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...