scriptdev2 / scriptdev2-tbc

ScriptDev2 for TBC
http://www.scriptdev2.com
GNU General Public License v2.0
29 stars 28 forks source link

Karazhan: netherspite portal implementation #6

Closed zeroworld closed 8 years ago

zeroworld commented 11 years ago

for questions and feedback u can also contact baum at

http://cmangos.net/index.php http://www.scriptdev2.com/forum.php

xfurry commented 11 years ago

There are a few things which I don't like about this patch:

  1. Lack of documentation. It's pretty hard to understand what are you trying to do in each function.
  2. You have some things which belong to the database. Such as unit flags or factions. We change flags / factions in SD2 only when this is required. In this case it should be set in the database.
  3. You shouldn't store pointers such as Creature* or Unit*.
  4. There is an easy way to handle the portals using the script effect spells. I wrote a script myself about this about 1 year ago but I didn't complete it. When I'll find it I will share it with you, so maybe we can dig this up together.
  5. You should open the pull to the master repo: https://github.com/scriptdev2/scriptdev2/commits/master Then we'll backport it to TBC.
zeroworld commented 11 years ago

Thanks for your feedback xfurry!

I would really appreciate to work with you together.

Regarding to your post: I did the database stuff in the script because otherwise you cannot test it. Is there a way to push database changes here? Furthermore please tell me how to deal with pointers in sd2 correctly.

Finally i will try to documentate the script in detail and then i will pull it to the master repo ;)

best regards baum

Schmoozerd commented 11 years ago
zeroworld commented 11 years ago

Thank you for your feedback Schmoozerd!

I going to set up wotlk the next days. Portal implementation update is also on the way.

best regards baum

xfurry commented 11 years ago

I found the two old patches I wrote for Netherspite portals. None of them is complete but I think that a combination of these 2 can do the job. Here is my work: http://paste2.org/UcMM9JOb http://paste2.org/ns6zKmPf

xfurry commented 8 years ago

Implemented in core. Will be backported to TBC soon.