PDA

View Full Version : a script wich give money to player ?


jrc24
06-21-2004, 12:50 PM
please somebody could give me a script wich give N credits to player ?

thanks to scripters

tk102
06-21-2004, 01:46 PM
void main() {
int nGoldPieces = (number of gold pieces here);
object oNPC=GetObjectByTag("your_npc_tag");
GiveGoldToCreature(oNPC, nGoldPieces);
}

jrc24
06-21-2004, 02:04 PM
ok thank you very much tk102 ! :)

tk102
06-21-2004, 02:07 PM
No problem ... take a peek a nwscript.nss to see all the handy functions. Some of them have language that's a throwback to Neverwinter Nights (gold is credits for example.)

Lorden Darkblade
06-21-2004, 02:36 PM
Can that script be added to speach?
Like the Dark Side Choker thing?

Darth333
06-21-2004, 04:02 PM
Originally posted by ReLoaD2K
Can that script be added to speach?
Like the Dark Side Choker thing?
Of course :)