[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?
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?
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.
Archived author: Jinnai • Posted: 2021-03-23T14:06:00.925000+00:00
Original source
you could use "TEMPSUMMON_TIMED_DESPAWN, 10s)"
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'`
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
Archived author: Jinnai • Posted: 2021-03-23T14:27:43.117000+00:00
Original source
you are missing the orientation
Archived author: Jinnai • Posted: 2021-03-23T14:27:55.151000+00:00
Original source
x,y,z,o
Archived author: Jinnai • Posted: 2021-03-23T14:28:08.034000+00:00
Original source
your current o is TEMPSUMMON_TIMED_DESPAWN
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
Archived author: LeeT • Posted: 2021-03-23T14:38:57.136000+00:00
Original source
I think anyone need an "starting point"...