Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] this should be part of an itemscript, is it an itemscript? and is it correctly attached to an item?

[DiscordArchive] this should be part of an itemscript, is it an itemscript? and is it correctly attached to an item?

[DiscordArchive] this should be part of an itemscript, is it an itemscript? and is it correctly attached to an item?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
03-23-2021, 01:56 PM
#1
Archived author: Jinnai • Posted: 2021-03-23T13:56:18.437000+00:00
Original source

this should be part of an itemscript, is it an itemscript? and is it correctly attached to an item?
rektbyfaith
03-23-2021, 01:56 PM #1

Archived author: Jinnai • Posted: 2021-03-23T13:56:18.437000+00:00
Original source

this should be part of an itemscript, is it an itemscript? and is it correctly attached to an item?

rektbyfaith
Administrator
0
03-23-2021, 01:57 PM
#2
Archived author: LeeT • Posted: 2021-03-23T13:57:57.785000+00:00
Original source

Yes, itemscript and yes, is attached to an item.
Successfully added it (and ingame it summon that npc) with

pPlayer->SummonCreature(50000, pPlayer->GetPositionX() + 3, pPlayer->GetPositionY(), pPlayer->GetPositionZ(), 10000); //(tried to make that "10000" as despawntime, but it does anything else, dont know what)

But dont know how to set auto despawn after "10000" ms.
rektbyfaith
03-23-2021, 01:57 PM #2

Archived author: LeeT • Posted: 2021-03-23T13:57:57.785000+00:00
Original source

Yes, itemscript and yes, is attached to an item.
Successfully added it (and ingame it summon that npc) with

pPlayer->SummonCreature(50000, pPlayer->GetPositionX() + 3, pPlayer->GetPositionY(), pPlayer->GetPositionZ(), 10000); //(tried to make that "10000" as despawntime, but it does anything else, dont know what)

But dont know how to set auto despawn after "10000" ms.

rektbyfaith
Administrator
0
03-23-2021, 02:06 PM
#3
Archived author: Jinnai • Posted: 2021-03-23T14:06:00.925000+00:00
Original source

you could use "TEMPSUMMON_TIMED_DESPAWN, 10s)"
rektbyfaith
03-23-2021, 02:06 PM #3

Archived author: Jinnai • Posted: 2021-03-23T14:06:00.925000+00:00
Original source

you could use "TEMPSUMMON_TIMED_DESPAWN, 10s)"

rektbyfaith
Administrator
0
03-23-2021, 02:22 PM
#4
Archived author: LeeT • Posted: 2021-03-23T14:22:17.548000+00:00
Original source

Doesnt work.
Also, searched google for example, and it is:

`me->SummonCreature(SKARLOC_MOUNT, 2488.64f, 625.77f, 58.26f, 4.71f, TEMPSUMMON_TIMED_DESPAWN, 10000);`

Mine is
`pPlayer->SummonCreature(50000, pPlayer->GetPositionX() + 3, pPlayer->GetPositionY(), pPlayer->GetPositionZ() + 1, TEMPSUMMON_TIMED_DESPAWN, 10000);`

And it return:
`Error C2664 'TempSummon *WorldObject::SummonCreature(uint32,const Position &,TempSummonType,Milliseconds,uint32,uint32,bool)': cannot convert argument 3 from 'float' to 'TempSummonType'`
rektbyfaith
03-23-2021, 02:22 PM #4

Archived author: LeeT • Posted: 2021-03-23T14:22:17.548000+00:00
Original source

Doesnt work.
Also, searched google for example, and it is:

`me->SummonCreature(SKARLOC_MOUNT, 2488.64f, 625.77f, 58.26f, 4.71f, TEMPSUMMON_TIMED_DESPAWN, 10000);`

Mine is
`pPlayer->SummonCreature(50000, pPlayer->GetPositionX() + 3, pPlayer->GetPositionY(), pPlayer->GetPositionZ() + 1, TEMPSUMMON_TIMED_DESPAWN, 10000);`

And it return:
`Error C2664 'TempSummon *WorldObject::SummonCreature(uint32,const Position &,TempSummonType,Milliseconds,uint32,uint32,bool)': cannot convert argument 3 from 'float' to 'TempSummonType'`

rektbyfaith
Administrator
0
03-23-2021, 02:27 PM
#5
Archived author: LeeT • Posted: 2021-03-23T14:27:39.871000+00:00
Original source

Also, What I have made yesterday (if you want to see it, now it work as intended)
https://pastebin.com/JqsFNcEy
[Embed: /**==============================================**Trainer + Buffer...]
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
https://pastebin.com/JqsFNcEy
rektbyfaith
03-23-2021, 02:27 PM #5

Archived author: LeeT • Posted: 2021-03-23T14:27:39.871000+00:00
Original source

Also, What I have made yesterday (if you want to see it, now it work as intended)
https://pastebin.com/JqsFNcEy
[Embed: /**==============================================**Trainer + Buffer...]
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
https://pastebin.com/JqsFNcEy

rektbyfaith
Administrator
0
03-23-2021, 02:27 PM
#6
Archived author: Jinnai • Posted: 2021-03-23T14:27:43.117000+00:00
Original source

you are missing the orientation
rektbyfaith
03-23-2021, 02:27 PM #6

Archived author: Jinnai • Posted: 2021-03-23T14:27:43.117000+00:00
Original source

you are missing the orientation

rektbyfaith
Administrator
0
03-23-2021, 02:27 PM
#7
Archived author: Jinnai • Posted: 2021-03-23T14:27:55.151000+00:00
Original source

x,y,z,o
rektbyfaith
03-23-2021, 02:27 PM #7

Archived author: Jinnai • Posted: 2021-03-23T14:27:55.151000+00:00
Original source

x,y,z,o

rektbyfaith
Administrator
0
03-23-2021, 02:28 PM
#8
Archived author: Jinnai • Posted: 2021-03-23T14:28:08.034000+00:00
Original source

your current o is TEMPSUMMON_TIMED_DESPAWN
rektbyfaith
03-23-2021, 02:28 PM #8

Archived author: Jinnai • Posted: 2021-03-23T14:28:08.034000+00:00
Original source

your current o is TEMPSUMMON_TIMED_DESPAWN

rektbyfaith
Administrator
0
03-23-2021, 02:37 PM
#9
Archived author: -- • Posted: 2021-03-23T14:37:47.955000+00:00
Original source

literally just don't start coding without any know how, copy and pasting from other scripts and then wondering why it doesn't work
rektbyfaith
03-23-2021, 02:37 PM #9

Archived author: -- • Posted: 2021-03-23T14:37:47.955000+00:00
Original source

literally just don't start coding without any know how, copy and pasting from other scripts and then wondering why it doesn't work

rektbyfaith
Administrator
0
03-23-2021, 02:38 PM
#10
Archived author: LeeT • Posted: 2021-03-23T14:38:57.136000+00:00
Original source

I think anyone need an "starting point"...
rektbyfaith
03-23-2021, 02:38 PM #10

Archived author: LeeT • Posted: 2021-03-23T14:38:57.136000+00:00
Original source

I think anyone need an "starting point"...

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)