Forum > Tutorials
[TUTORIAL] Custom transports, taxis (fly/wind paths)
<< < (3/4) > >>
Amaroth:
--- Quote from: "ladiszlai" ---Amaroth, Which Transport has got SmartAI script ? --- End quote --- Its quite easy to find out, just look for gameobjects with type=15. It should be one with entry=190549. Just to make sure, by transports I mean wandering gobs, by taxis I mean mounts given by NPC fly masters.
--- Quote from: "ladiszlai" ---You mean to this ? : SMART_ACTION_ACTIVATE_TAXI
Because this is not working for GameObjects this action is for only NPCs (example a flightmaster) --- End quote --- Yes, I mean exactly that action. What have you filled into AIName in gameobject_template? SmartAI? If you did, its wrong, for gobs there should be SmartGameObjectAI. Don't ask me why, just do it, I was also terribly surprised when I tryed to link gobs to SAI scripts for first time and it, for "strange reason", didn't work. If you did this step well, then I am not entirely sure what went wrong and I might need to see your data you have inserted into gameobject_template and smart_scripts.
ladiszlai:
--- Quote from: "Amaroth" --- --- Quote from: "ladiszlai" ---Amaroth, Which Transport has got SmartAI script ? --- End quote --- Its quite easy to find out, just look for gameobjects with type=15. It should be one with entry=190549. Just to make sure, by transports I mean wandering gobs, by taxis I mean mounts given by NPC fly masters.
--- Quote from: "ladiszlai" ---You mean to this ? : SMART_ACTION_ACTIVATE_TAXI
Because this is not working for GameObjects this action is for only NPCs (example a flightmaster) --- End quote --- Yes, I mean exactly that action. What have you filled into AIName in gameobject_template? SmartAI? If you did, its wrong, for gobs there should be SmartGameObjectAI. Don't ask me why, just do it, I was also terribly surprised when I tryed to link gobs to SAI scripts for first time and it, for "strange reason", didn't work. If you did this step well, then I am not entirely sure what went wrong and I might need to see your data you have inserted into gameobject_template and smart_scripts. --- End quote ---
I am not doing this yet , I just saying because in the cpp file this action refer to creatures.
But I am interested in if this action works I need to put the PathID to the data0 ?
I never tryed to start a transport manually.
dumass:
My boat is not showing ingame :( Can anyone please help me ? I don't know what I did wrong because I did the steps like Amaroth.
Or I need to spawn the gameobject ?
Amaroth:
ladiszlai - That transport with SAI is called Zephyr and has 4 SAI scripts. All of them have event_type SMART_EVENT_GO_EVENT_INFORM and action_type SMART_ACTION_CALL_TIMED_ACTIONLIST. These actions activate another sets of smart_scripts (script sets 19054900, 19054901, 19054902, 19054903 in smart_scripts). Those script sets, for example, make the closest creature to gob with entry=34715 say something. It seems you have some sort of NPC guide onboard? Just check it out for yourself, follow refferences in smart_scripts.
Once again, transport is gameobject, taxi is mount. You can't make SAI actually spawn transport. You can make SAI call taxi path, which will lead into player being mounted on NPC and sent on taxi path. This has absolutely nothing to do with data0 and with gobs whatsoever. If you haven't already tryed to actually do what this tutorial for, I am not sure why are you even asking about things which might get obvious to you after trying to do this on your own.
________________________________
dumass - Make sure you have DBCs in your patch-4.mpq (or patch-[letter].mpq) and also in your server's .../dbc/ folder. Steff also said it is good to have patch with edited DBCs also in Locale directory (Data/EnGB/ or Data/EnUS/ or whatever else), I never had any need for that but... whatever. Also check if you really had created (correctly) gob for transport and that you have added it into transports table. I can't help you more, just do exactly as I said in tutorial and make sure that you did so. There are many reasons why it possibly doesn't work for you, so if you won't be able to find solution on your own, I will need to see your DBC and DB data you have added/edited. Just btw, you are not to spawn transport gob on your own. Server will take care of it on its own without you spawning anything, but needs to have gob in transports table in world database.
dumass:
--- Quote from: "Amaroth" ---ladiszlai - That transport with SAI is called Zephyr and has 4 SAI scripts. All of them have event_type SMART_EVENT_GO_EVENT_INFORM and action_type SMART_ACTION_CALL_TIMED_ACTIONLIST. These actions activate another sets of smart_scripts (script sets 19054900, 19054901, 19054902, 19054903 in smart_scripts). Those script sets, for example, make the closest creature to gob with entry=34715 say something. It seems you have some sort of NPC guide onboard? Just check it out for yourself, follow refferences in smart_scripts.
Once again, transport is gameobject, taxi is mount. You can't make SAI actually spawn transport. You can make SAI call taxi path, which will lead into player being mounted on NPC and sent on taxi path. This has absolutely nothing to do with data0 and with gobs whatsoever. If you haven't already tryed to actually do what this tutorial for, I am not sure why are you even asking about things which might get obvious to you after trying to do this on your own.
________________________________
dumass - Make sure you have DBCs in your patch-4.mpq (or patch-[letter].mpq) and also in your server's .../dbc/ folder. Steff also said it is good to have patch with edited DBCs also in Locale directory (Data/EnGB/ or Data/EnUS/ or whatever else), I never had any need for that but... whatever. Also check if you really had created (correctly) gob for transport and that you have added it into transports table. I can't help you more, just do exactly as I said in tutorial and make sure that you did so. There are many reasons why it possibly doesn't work for you, so if you won't be able to find solution on your own, I will need to see your DBC and DB data you have added/edited. Just btw, you are not to spawn transport gob on your own. Server will take care of it on its own without you spawning anything, but needs to have gob in transports table in world database. --- End quote ---
Yeah I added the 3 dbcs to my core and to my client. (to the local as Ladiszlai said) And I can link my gameobject+transport : http://pastebin.com/G83RSYwD
Navigation
[0] Message Index
[#] Next page
[*] Previous page
|