Jump to content

Question

Posted (edited)
        monster(.@map$, 120, 130, "Dracula", 1389, 1);
        'Dracula = $@mobid[0];

            getunitdata 'Dracula,.@bossdata;
            .@x = .@bossdata[6];
            .@y = .@bossdata[7];
            monster instance_mapname("1@dra"),.@x,.@y,"",1389,1;
            'draculaclone = $@mobid[0];
            setunitdata 'draculaclone, 29, 1;
            unitskilluseid 'draculaclone, 85, 1;
                if(rand(1,20) > 10) {
                    unittalk 'Dracula,"!!!!!!";
                    unitskillusepos 'draculaclone,85,10,.@x,.@y;
                    for(.@i = 0; .@i < 2; .@i ++) {
                        unitskillusepos 'draculaclone,89,10,.@x+.@i+5,.@y+.@i+5;
                        unitskillusepos 'draculaclone,89,10,.@x-.@i-5,.@y-.@i-5;
                    }
            }

I'm trying to create custom instance, but unitskilluseid just cast without give any magic & damage, no error in map server

Edited by ragexe
typo

5 answers to this question

Recommended Posts

  • 0
Posted (edited)
18 minutes ago, benching said:

This totally unrelated answer,

Iirc, i think '$' in vars should be used as suffix, not prefix

there are different types of variables in rAthena scripting. Please refer to this: https://github.com/rathena/rathena/wiki/Variables

@ragexe

12 hours ago, ragexe said:

unitskillusepos 'id,85,10,.@x,.@y;

I think this should be

unitskillpos 'Dracula,85,10,.@x,.@y;

'id is something non-existent in your snippet and it means that it doesn't have any stat at all.

Edited by Ninja
grammar nazi
  • 0
Posted
13 minutes ago, Ninja said:

there are different types of variables in rAthena scripting. Please refer to this: https://github.com/rathena/rathena/wiki/Variables

@ragexe

I think this should be


unitskillpos 'Dracula,85,10,.@x,.@y;

'id is something non-existent in your snippet and it means that it doesn't have any stat at all.

Thnks for the link, im so outdated or getting forgetful.

 

  • 0
Posted
51 minutes ago, Ninja said:

there are different types of variables in rAthena scripting. Please refer to this: https://github.com/rathena/rathena/wiki/Variables

@ragexe

I think this should be


unitskillpos 'Dracula,85,10,.@x,.@y;

'id is something non-existent in your snippet and it means that it doesn't have any stat at all.

ah my bad, thanks for answer, but nothing change, its cast skill (just magic circle) but not given damage & effect

  • 0
Posted

Here is a segment from one of my paid scripts where is use this command.

monster 'map$,158,239,"--ja--",'boss_id,1,instance_npcname("oghcm#control")+"::OnBossDeath";
'boss = $@mobid[0];
getunitdata 'boss,.@boss_data;
unitskillusepos 'boss,91,5,.@boss_data[UMOB_X],.@boss_data[UMOB_Y],-2;

This works for me. The only difference I can see is that I am providing the last parameter which is cast time. Also, I'm using `unitskillusepos`.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...