This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Trinitycore: Smart_script  (Read 1228 times)

human1104

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 45
    • View Profile
Trinitycore: Smart_script
« on: September 28, 2016, 10:53:01 pm »
Hello.
I created an NPC with gossip, and smart scrypt.

Gossip:

Entry:                               2
option_icon                      0
Optiontext                        Ready to fight
Option_ID:                       1
NPC_option_NPCflag:     1


Smart_scrypt.

Entry                                 39
source type                      0
event type                        62
event chance                   100
event param                     2
action type                        2   SMART_ACTION_SET_FACTION
action param                    16
target_type                       1


I want to create, to if i talk to the npc, after i can fight him.
I create this scripts, after the NPC nameplate turn .. Red color. Like any enemy. But i cant fight for her. What i do wrong, or what can i do, to work correcctly?

And how can i do, to i can only talk this npc, if i accept the quest?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

human1104

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 45
    • View Profile
Re: Trinitycore: Smart_script
« Reply #1 on: September 30, 2016, 02:59:30 am »
Solved
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: Trinitycore: Smart_script
« Reply #2 on: September 30, 2016, 08:24:51 am »
LIke always, it would be nice to actually describe what was wrong and what turned out to be solution. Especially when apparently noone here knew what is wrong or what to do with it.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

human1104

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 45
    • View Profile
Re: Trinitycore: Smart_script
« Reply #3 on: September 30, 2016, 02:56:53 pm »
I just want to create a quest, similar like this:

http://www.wowhead.com/quest=10273/trou ... stractions
 or this

http://www.wowhead.com/quest=10273/trou ... stractions

Accept the quest, talk to the NPC, after fight with her. But without lua script.

I found more siimilar quest, example argent tournament daily, or that what i link, but this quest bugged my server. Difficult to use example, not working quest.

So i asked here, to anyone know a solution for this problem. I writed whole smart, and gossip here, becouse my english lesson so pure. Too pure. I hoped to you guys understanding what i want. But probably not. No matter, i discover a smar_script options.

Action_type  36
Action param. Creature entry.

This option replace the actual creature for the optioned creature. So i just need to create a creature copies, with faction 16 code, and i can alredy fight with her.

So the single part of my problem wa solved.

But I do not know it always yet, how can i do, to i can only talk this npc, if i accept the quest?

I hope so, that understandable, what I want to say. I dont know better.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »