Does anyone know how to get the prize npc to give the items that they have one?
I really need help Please reply!
I really need help Please reply!
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);
Second one would be a bit harder to code but just remember, you already have examples of just about every section of code required.Quote:
WOw thanks I think i will add the second one.
You always come with very good explanations, very good :)Quote:
Could be two ways you want it done.
#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)