VoidWatch

shadowuz
Posts: 26
Joined: Mon May 18, 2015 9:46 am

VoidWatch

Post by shadowuz » Wed Sep 16, 2015 11:22 pm

what did i do wrong


Code: Select all

-----------------------------------
-- Zone: KRT
--  NPC: ??? (Planar Rift)
-- Spawns  Hahava (???)
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------

function onTrigger(player,npc)
    if (GetMobAction(17555903) == ACTION_NONE) then
        -- NM not already spawned from this, so checking KI
        if (player:hasKeyItem(CRIMSON_STRATUM_ABYSSITE_IV) and player:hasKeyItem(VOIDSTONE_TEMP)) then
            -- Ask if player wants to use KIs
            player:startEvent(6000, CRIMSON_STRATUM_ABYSSITE_IV, VOIDSTONE_TEMP);
        else
            -- Do not ask, because player is missing at least 1.
            player:startEvent(6001, CRIMSON_STRATUM_ABYSSITE_IV, VOIDSTONE_TEMP);
        end
    end
end;

-----------------------------------
-- onEventUpdate
-----------------------------------

function onEventUpdate(player,csid,option)
    -- printf("CSID2: %u",csid);
    -- printf("RESULT2: %u",option);
end;

-----------------------------------
-- onEventFinish
-----------------------------------

function onEventFinish(player,csid,option)
    -- printf("CSID: %u",csid);
    -- printf("RESULT: %u",option);
    if (csid == 6000 and option == 1) then
        -- Spawn NM, Despawn after inactive for 3 minutes (pt has to reclaim within 3 mins of a wipe)
        SpawnMob(17555903, 180):updateEnmity(player);
        player:delKeyItem(VOIDSTONE_TEMP);
         
		end 
	end;	
	
	
	

errori get is :

[16/Sep] [23:16:53][1;36m[Debug][0m [1;36mparse: SmallPacket is not implemented Type<112>
[0m[16/Sep] [23:16:53][1;37m[Info][0m parse: 05A | 0003 0002 02 from user: Shadow
[16/Sep] [23:17:02][1;37m[Info][0m parse: 01A | 0015 0014 0E from user: Shadow

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: VoidWatch

Post by whasf » Thu Sep 17, 2015 7:36 pm

That's not an error, it's just a debug message about a packet type not being implemented
-- Whasf

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: VoidWatch

Post by kjLotus » Thu Sep 17, 2015 8:04 pm

what is the issue? your mob is not spawning?

shadowuz
Posts: 26
Joined: Mon May 18, 2015 9:46 am

Re: VoidWatch

Post by shadowuz » Thu Sep 17, 2015 11:12 pm

nah it crashes server
heres the map log

[0m[17/Sep] [23:52:55][1;37m[Info][0m parse: 053 | 0004 0001 44 from user: Shadow
[17/Sep] [23:52:55][1;37m[Info][0m parse: 01A | 0004 0001 0E from user: Shadow
[17/Sep] [23:52:55][1;36m[Debug][0m [1;36mCLIENT Shadow PERFORMING ACTION 14
[0m[17/Sep] [23:52:55][1;37m[Info][0m parse: 04B | 0004 0001 0C from user: Shadow
[17/Sep] [23:52:55][1;37m[Info][0m parse: 0E0 | 0004 0001 4C from user: Shadow
[17/Sep] [23:52:55][1;37m[Info][0m parse: 00F | 0004 0001 12 from user: Shadow
[17/Sep] [23:52:55][1;37m[Info][0m parse: 0DB | 0004 0001 14 from user: Shadow
[17/Sep] [23:52:55][1;37m[Info][0m parse: 112 | 0004 0001 04 from user: Shadow
[17/Sep] [23:52:55][1;36m[Debug][0m [1;36mparse: SmallPacket is not implemented Type<112>
[0m[17/Sep] [23:52:55][1;37m[Info][0m parse: 05A | 0004 0001 02 from user: Shadow
[17/Sep] [23:52:57][1;37m[Info][0m parse: 04B | 0005 0002 0C from user: Shadow
[17/Sep] [23:53:27][1;37m[Info][0m parse: 01A | 003D 003A 0E from user: Shadow
[17/Sep] [23:57:07][1;36m[Debug][0m [1;36mCLIENT Shadow PERFORMING ACTION 00
[0m[17/Sep] [23:57:08][1;36m[Debug][0m [1;36mmap_cleanup: Shadow timed out, closing session

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: VoidWatch

Post by kjLotus » Fri Sep 18, 2015 12:55 am

you'll have to run it from visual studio to figure out why it's crashing

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: VoidWatch

Post by TeoTwawki » Fri Sep 18, 2015 3:50 pm

I know why it crashed. Null keyitem. You can't just make those up.

Valid ones are listed in scripts/globals/keyitems.lua which I see you already required. It has no entry for "VOIDSTIONE_TEMP" because no keyitem has that name in retail. If you try and make up one in the global it'll wind up being some other KI in game so don't try that.
the keyitems.lua file wrote:VOIDSTONE1 = 1539;
VOIDSTONE2 = 1540;
VOIDSTONE3 = 1541;
VOIDSTONE4 = 1542;
VOIDSTONE5 = 1543;
VOIDSTONE6 = 1544;
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

shadowuz
Posts: 26
Joined: Mon May 18, 2015 9:46 am

Re: VoidWatch

Post by shadowuz » Fri Sep 18, 2015 9:56 pm

thx, i got voidstone_temp from the ki page on dspwiki
Last edited by shadowuz on Fri Sep 18, 2015 10:17 pm, edited 1 time in total.

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: VoidWatch

Post by TeoTwawki » Fri Sep 18, 2015 10:02 pm

shadowuz wrote:thx teo, i got voidstone_temp from the ki page on dspwiki
Bad wiki, thats a paddlin!

Its kinda poorly maintained, I guess from the lack of people getting signed up because they have to ask whasf to hook them up because signup was disabled to stop armies of spam bots abusing it. I have an idea or 3 to solve this, have to talk to him about it later.
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

shadowuz
Posts: 26
Joined: Mon May 18, 2015 9:46 am

Re: VoidWatch

Post by shadowuz » Fri Sep 18, 2015 10:25 pm

so now it'll start event but i think i'm forgetting something,as it only gives 2 choices

[imgImage][/img]

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: VoidWatch

Post by kjLotus » Fri Sep 18, 2015 10:27 pm

Code: Select all

player:startEvent(6000, CRIMSON_STRATUM_ABYSSITE_IV, VOIDSTONE_TEMP);
probably one of the other 6 params

Post Reply