Aller au contenu

Photo

How to give gold to player when entering a module?


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Stephanommg

Stephanommg
  • Members
  • 13 messages

I used a simple script:

 

void main(){

     GiveGoldToCreature(GetFirstPC(),30000);

}

 

I anexed the script in the OnPCLoad, OnModuleLoad, OnModuleStart, OnClientEnter in module properties and it doesnt work.

What is the problem?



#2
Tchos

Tchos
  • Members
  • 5 054 messages

Try On Client Enter of the properties of the first area, not the module.



#3
kamal_

kamal_
  • Members
  • 5 250 messages
Compiled the script?

#4
Stephanommg

Stephanommg
  • Members
  • 13 messages

Thank you guys, but i think i fount out the problem. I was annexing the script in ALL of those fields to make sure at least one would execute the script. But it seems it doesnt work this way, because now i annexed only in OnClientEnter of the module and it works fine.



#5
Dann-J

Dann-J
  • Members
  • 3 161 messages

Reloading from saved games will prove very profitable with that script. :)