Objects quest problem
#1

Ok so i spawned some object, they need to count for a special quest with object.. i made the entirely script but, when i enter in a object it doesn't count for the progress..
i don't know what to post, tell me what i should post and i will
Reply
#2

Just post the code that updates the count for the progress, and the IsPlayerInRangeOfPoint for the objects please.
Reply
#3

https://pastebin.com/rSxwjgqV

I think i forgot the IsPlayerInRangeOfPoint... i dont know how to create it :/
Reply
#4

can someone help?
Reply
#5

Ok, look at this line:
format(string,sizeof(string)," Felicitari! Ai gasit obiectul nr. {FF0000}%d{FFFFFF}! Acum ai {FF0000}%d / %d {FFFFFF}obiecte!",j,ObiecteGasite[playerid],MAX_OBIECTE);
You have put ObiecteGasite[playerid]. Shouldnt it be ObiecteGasiteTotal[playerid]?
Reply
#6

Quote:
Originally Posted by YouAlreadyKnowWhoItIs
Посмотреть сообщение
Ok, look at this line:
format(string,sizeof(string)," Felicitari! Ai gasit obiectul nr. {FF0000}%d{FFFFFF}! Acum ai {FF0000}%d / %d {FFFFFF}obiecte!",j,ObiecteGasite[playerid],MAX_OBIECTE);
You have put ObiecteGasite[playerid]. Shouldnt it be ObiecteGasiteTotal[playerid]?
Modified, but same problem
Reply
#7

anyone?
Reply
#8

You can place the objects somewhere,get the coordinates.

and use if isplayerinrangeofpoint and if he gets in the range of the object send him a message saying "you`ve collected an item" , destroy the object and set the variable of player total gifts to current value + 1.

you also have to stock that in mysql / ini to make sure he wont do the quest all over again or make sure his progress won`t reset.
Reply
#9

i don't know how to do this: player is going into a object but it isn't count to the progress.. i dont know how to do this, how te player can collect it
Reply
#10

what variable do you use for gifts?
btw i wouldnt suggest starting with this type of scripts if you are a beginner..its quite difficult,check tutorials section and start with easier things.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)