I remember seeing something about the prize npc and what not in the Paze Co source when I was going through it, I don't know if it actually worked or anything but maybe look through that source.
OKay thanks. I have him working but i want to be able to give an acccount a certain item and them go to him to get it
@blade im not dumb ive got plenty of those its just i want prize npc to work
well you have to make the NPC check if the player has the itemID in his inventory, then if he does put up the dialog and award the item, maybe like this:
Code:
if Control = 1;
{
// Check for the item in inventory
{
Text("Thank you for your item, here ill reward you with a meteor!");
Link("Thanks." 255);
AwardItem(1088001-0-0-0-0-0, 0)//theres more to this....
}
else
{
Text("Sorry you dont have the required item");
Link("Darnskies" 255);
#1 Predetermined items (db's? pre-set items?) for players with a certain database value (such as donation, won a pk event, was awarded by gm etc)
In that case add a database value for it such as Prize and have it = True through some function (gm command is easy enough to do, or a web based donation system, or the ever simple ingame reward for events)
Then have it donated.
You could also do a really neat system by creating a new table in the database where it stores player id, item number, +, bless, enchant, sockets etc. That way you can have a player command OR donation based system where it changes the reward to ANYTHING you want and then the npc simply loads out of the database what to give you and then clears it from database (so you can't claim more than once)
The benefits for the second system would be you could do a player command that functions exactly like /item except it has a target player name. That will then allow the player to claim the item when they come online (would be useful to add a check when they logon to see if they have anything to claim and alert the player via msg's)
Second one would be a bit harder to code but just remember, you already have examples of just about every section of code required.
#1: Getting player target name (Look at any gm command that targets a player such as kick, bringmeto/bringtome, ban etc)
#2: Spawning item stats: Just check the add item code and instead load it from database
#3: Saving to database: Make the gm command save it to the database for the target id
Only one that wouldn't have some sort of example out there as far as I can think of is a web based donation system (so you could let players create their own specific items for x amount of donation *cough* selling *cough* and then it save to database...) That part would be far more complicated though.
#1 Predetermined items (db's? pre-set items?) for players with a certain database value (such as donation, won a pk event, was awarded by gm etc)
In that case add a database value for it such as Prize and have it = True through some function (gm command is easy enough to do, or a web based donation system, or the ever simple ingame reward for events)
Then have it donated.
You could also do a really neat system by creating a new table in the database where it stores player id, item number, +, bless, enchant, sockets etc. That way you can have a player command OR donation based system where it changes the reward to ANYTHING you want and then the npc simply loads out of the database what to give you and then clears it from database (so you can't claim more than once)
The benefits for the second system would be you could do a player command that functions exactly like /item except it has a target player name. That will then allow the player to claim the item when they come online (would be useful to add a check when they logon to see if they have anything to claim and alert the player via msg's)
You always come with very good explanations, very good
Help to Changing PKT Prize 04/05/2010 - EO PServer Hosting - 5 Replies How do I change the prize PKT?
Anyone have any query?
the item ID is "742806"
For those who can help me thank you.
Att Corey88:cool:
[Help]NPC Fam War Can't Claim Prize.. 01/11/2010 - EO PServer Hosting - 2 Replies Hey all..
I need some help to fix this..
i use search button but not find it...
How to fix it...My NPC fam war can't claim Prize..?
Do u think that u get the ali baba prize? 09/15/2009 - Silkroad Online - 15 Replies hello there ...
do u think u gonna win the SOx i dont think so ;p
how many alibaba seals u got ??
i have 93 now ^^
im gonna buy this car when i win the Sox ^^
prize hack 03/07/2009 - CO2 Programming - 16 Replies i used it befor it`s wrok like that you see what monster have befor it die like see inside monster Db or meteor or gem and kill it than get what you see yeah that ture and i listen about it back agine if some one can get it i will be thanks for him