Jump to content
  • 0

MVP Summon Script


uDe

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Error :

NDTTC.jpg

How to 'convert' this eA script into rA script?

*Script attached*mvp_summon.txt

Edited by uDe
Link to comment
Share on other sites

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  12/26/16
  • Last Seen:  

On 10/13/2012 at 4:46 PM, uDe said:

Error :

NDTTC.jpg

How to 'convert' this eA script into rA script?

*Script attached*mvp_summon.txt

mvp_summon.txt <<< spoon feed lol hehehe Thank You 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  12/26/16
  • Last Seen:  

On 10/13/2012 at 4:46 PM, uDe said:

Error :

NDTTC.jpg

How to 'convert' this eA script into rA script?

*Script attached*mvp_summon.txt

Thank You bro :D it WORK <3 

Untitled.png

3.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

We don't have getmapmobs in rA, but we have countmob so change them into countmob and I don't understand why is it getting map monster from map "this". Is your map named "this"?

*mobcount("<map name>","<event label>")

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

I also don't understand about that. Before, I'm using it at eA server. No problems at all.. Just debug for int__

// ....... if your server has { Overwriting user function [int__] } don't blame me ..........

function script int__ {

set .@num, atoi(getarg(0));

if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0);

set .@l, getstrlen(.@num);

for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) {

set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$;

if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;

}

return .@num$;

}

and the default script is here : http://www.eathena.w...pe=post&id=5277

and no other problems besides that. Maybe it's an old eAthena script function? /oops

How about if there's 8 maps? How to adjust it?

Edited by uDe
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

I no longer support that script lol

rather than just increase to use 8 maps

I always plan to rewrite this one to use instance .... theoretically infinite room ...

curious, what kind of server message you get from installing that int__ function ?

[info]: npc_parse_function: Overwriting user function [int__] (npc/aaa.txt:1548)

seem like the same to me

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

I no longer support that script lol

rather than just increase to use 8 maps

I always plan to rewrite this one to use instance .... theoretically infinite room ...

But I love that script... I've used that script for 2 server (eA).. Now is my first time using rAthena and I hope I can use that script also..

Is there any way to solve that map problems??

curious, what kind of server message you get from installing that int__ function ?

[info]: npc_parse_function: Overwriting user function [int__] (npc/aaa.txt:1548)

seem like the same to me

About int__ function.. It's same like you. What I mean is, before this on eA server, I've no problems with this scripts at all..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

to add more maps you need to effectively change entire script

because I did a cheap trick on the map name

getmapusers("06guild_0"+ .@room)

the 06guild_0x is hardcoded

and need some tweaking change all those into a list of arrays ...

like I said, I rather think its much better to just use instancing ...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

to add more maps you need to effectively change entire script

because I did a cheap trick on the map name

getmapusers("06guild_0"+ .@room)

the 06guild_0x is hardcoded

and need some tweaking change all those into a list of arrays ...

like I said, I rather think its much better to just use instancing ...

I don't know how to tweak / adjust it to make into list of arrays.. xD

So, for future you want to update this script? For rA users?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

yeah ...

currently except that getmapmaps issue

the rest seems to work fine

there's no urgent need to update this script

so just tolerate with 8 maps max for now

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

So, for now I just need to wait? Because I really don't have idea how to fix the problems.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

BUMP..

I really need this script.. /sob

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  15
  • Reputation:   0
  • Joined:  04/24/12
  • Last Seen:  

BUMP..

I really need this script.. /sob

try to replace all getmapmobs("this") with mobcount("this","all")

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

try to replace all getmapmobs("this") with mobcount("this","all")

Thanks for the concern..

After do like you said, the NPC can be use and can summon MVP. But on the map-server, got these debug :

L6AcZ.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  15
  • Reputation:   0
  • Joined:  04/24/12
  • Last Seen:  

try to replace all getmapmobs("this") with mobcount("this","all")

Thanks for the concern..

After do like you said, the NPC can be use and can summon MVP. But on the map-server, got these debug :

L6AcZ.jpg

inside function script int__ {

find

set .@num, atoi(getarg(0));

and replace with

set .@num, atoi(""+getarg(0));

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

7Umml.jpg

This happen when I click at NPC to summon monsters. It's same like above right?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  15
  • Reputation:   0
  • Joined:  04/24/12
  • Last Seen:  

7Umml.jpg

This happen when I click at NPC to summon monsters. It's same like above right?

yeah~ the debug message give you a hint: Function: getstrlen

so covert to string

set .@l, getstrlen(""+.@num);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

function    script    int__    {
   set .@num, atoi(""+getarg(0));
   if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0);
   set .@l, getstrlen(""+.@num);
   for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) {
       set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$;
       if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;
   }
   return .@num$;
}

Still got same error..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  15
  • Reputation:   0
  • Joined:  04/24/12
  • Last Seen:  

function	script	int__	{
set .@num, atoi(""+getarg(0));
if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0);
set .@l, getstrlen(""+.@num);
for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) {
	set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$;
	if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;
}
return .@num$;
}

Still got same error..

dunno the reason why you still have that debug warning

I don't have any warning on map console

yx4UKEg.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

he need spoon feed

private mvp room 1.4a.txt

here you go

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

Will this work even with the current MVP tomb thing?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

no

prontera,155,177,0,0	boss_monster	Maya	1147,1,7200000,600000,1

to have a MVP tomb, boss_monster is needed

and my script uses *monster script command, its different

and what's the point having MVP tomb in this script ?

this script supposed to let players freely kill MVP as much as they want

you'll mostly found this npc in medium/high rate server

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

no

prontera,155,177,0,0	boss_monster	Maya	1147,1,7200000,600000,1

to have a MVP tomb, boss_monster is needed

and my script uses *monster script command, its different

and what's the point having MVP tomb in this script ?

this script supposed to let players freely kill MVP as much as they want

you'll mostly found this npc in medium/high rate server

I guess you answered my question however you misunderstood what I tried to say.

I meant: I have the mvp tomb thing at the moment, if I install that will they conflict?

But by your answer I think it means no, they won't conflict, right?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

you didn't even show your script, how do I know will they conflict ?

but as long as you are not having other script spawn monster inside 06guild_0x, yeah it wont conflict

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

he need spoon feed

private mvp room 1.4a.txt

here you go

Thank you so much... /kis

Thanks to sinya also /kis

Problem solved. /no1

I think the problem still not solve.. After a while..

These debug and warning appear again :

Lo3rf.png

I'm using this script :

Edited by uDe
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

BUMP UP

Link to comment
Share on other sites

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.

×
×
  • Create New...