![]() |
% done
how do they do it on 2001 and Prov where everytime u fire a weapon on a NPC it adds 1% or so and returns a action at 100%?
|
its just adding to a general total. not hard
if(action) this.percentdone++; |
that brings me to my next point. How do you declare your variables in graal?
in VB you have to do dim playerspeed as integer playerspeed = 0 how do you define them in graal? |
Quote:
its automatically delcared.... like setstring blah,blah; then blah is a string this.blah = 5; thats in integer in that npc level.blah = 5; that is a level wide integer |
i have never heard of level. before. Thats pretty good =D
|
I know how to do this! I made Lumber jacking for my server and I'm working on more.
|
so for lets say mining or something:
if(playerenters){ setstring percentdone,0; if(playertouchsme&&isweapon(pick)){ percentdone++; message This rock is percentdone Percent Done; } if(percentdone==100){ hide; playerruppes+=1; sleep 30; show; } So that would set the string percentdone to 0 when they enter, when the fire the pick on the NPC it adds 1 to percent done and when it reaches 100 it gives them 1 gralat and hides the rock for 30 seconds? |
Quote:
|
oh damn, i was about to get happy
|
Quote:
|
Shakaku:
Lol, I learned that, but i've heard it only works online or somethin, but i know how to use it. I'm not that great of a scripter tho, u can add me to aim and i'll try to help :D Moe478 |
NPC Code: Not the best code... But im poiting out your errors. |
Just ask SSRobgeta, hes the best scriptor i know...;)
|
thanks faldos.
|
Quote:
if(playerenters){ setstring percentdone,0; if(playertouchsme&&isweapon(pick)){ percentdone++; message This rock is #v(#s,percentdone) Percent Done; } if(percentdone==100){ hide; playerruppes+=1; sleep 30; show; } Dont forget, if you want a string value to appear in a message or a sign, you have to use message codes, :rolleyes: -Rebel95 |
| All times are GMT +2. The time now is 06:23 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.