Greetings everyone.
Id like to ask you for help, cause Im trying to create a module and I have never been scripting, nor using C before (thus Im complete dummy).
Heres a thing.
I need to create a script, which I put into conversation, so once NPC will speak the line, a custom item (my own creation) will be put into PCs inventory.
As I mentioned Im complete noob, so Id appriciate, if you could write me whole script, or if theres someone patient enough write me PM and learn me a little about scripting, since Im not able to compile any script at the moment.
Thanks .
AddItemToInventory
Débuté par
ponozsticka
, déc. 26 2009 12:16
#1
Posté 26 décembre 2009 - 12:16
#2
Posté 26 décembre 2009 - 10:14
void main()
{
CreateItemOnObject( R"yourobject.uti", GetHero(), 1 );
}
is about the minimum you need. This doesn't check f there is space in the inventory, whether the player has already received the object, or for any other illogical situations.





Retour en haut






