Jump to content
  • 0

Bossnia


stydianx

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

hello guys :) could you guys help me with this bossnia script?..

i would like the following modification:

1. i want it to be open every 4hours (or 3 times a day)

2. it announces that the event will be open in 3min.

3. It only opens for 30min.

4. a minimum of 4 players in a party to enter, max is 10.

5. if one member of the party dies, they are all warped out.

6. Minimum base level to enter is 150.

7. A control panel for GM lvl 99.

8. PvP on. No @warp/@go

9. No usable items are allowed inside (example: YGG)

10. Those who can survive for 30min. recieves 3 TCG's.


prontera,150,179,5 script bossnia Staff::bsw 105,{

mes "[Red]";
mes "Halt! Who approaches?";
mes "I know a Place where chaos rules the land.";
mes "I found it while wondering the plains of RObust.";
mes "I am an adventurer.";
mes "Haha~";
next;
mes "[Red]";
mes "What? My name is...";
mes "'RObustnia Staff'?? Urghh no...";
mes "Well, my name is not so important.";
mes "Sometimes you should be generous.";
mes "No time for considering that kind of small stuff";
mes "when you have to concentrate on more important things.";
next;
mes "[Red]";
mes "Hum... anyway I want to say... something..";
mes "While I was travelling through some places,";
mes "I found a really dreadful and fearful place.";
next;
mes "[Red]";
mes "Most of the time when you come to a place,";
mes "there is one strong and fearful monster.";
mes "Isn't it?";
next;
mes "[Red]";
mes "But... but... in there...";
mes "There are lots of fearful and strong monsters in there...";
mes "That was really frightful, i even heared rumors of Satan being spotted there.";
next;
mes "[Red]";
mes "If I had reacted a bit later... a few seconds...";
mes "I might have been killed.";
next;
mes "[Red]";
mes "What?";
mes "You want to go in there?";
mes "Oh~ Boy~ you didn't get me.";
mes "In there.......";
next;
mes "[Red]";
mes "Uh... you already know?";
mes "Although you know the place, you want to go in...";
mes "Good, I will send you there.";
mes "But after you went there, don't hold";
mes "a grudge against me. Also it costs 5,000 zeny.";
next;
if (Zeny > 4999) {
mes "[Riss]";
mes "Would you really like to take the challenge??";
mes "Ok, just choose the course.";
next;
set .@i, select("First","Second","Third","Fourth");
mes "[Riss]";
mes "Take care, boy~";
mes "Don't hold a grudge against me.";
close2;
set Zeny, Zeny - 5000;
warp "bossnia_0"+.@i,rand(199,200),rand(199,200);
end;
}
mes "[Red]";
mes "You don't have enough money...";
mes "Come back when you have at least 5,000 zeny.";
close;
}

geffen,124,169,4 duplicate(bsw) Bossnia Staff#2 908
payon,165,150,4 duplicate(bsw) Bossnia Staff#3 908
morocc,142,100,4 duplicate(bsw) Bossnia Staff#4 908
lighthalzen,203,140,4 duplicate(bsw) Bossnia Staff#5 908
rachel,132,144,4 duplicate(bsw) Bossnia Staff#6 908


Edited by stydianx
Link to comment
Share on other sites

Recommended Posts


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

it doesnt work..

the NPC doesnt appear..

// http://rathena.org/b.../73295-bossnia/

prontera,156,175,5 script RObustnia 53,{

if (.BossOn == 0) {

mes "Bossnia is now closed!";

close;

}

mes "Bossnia is now open! Would you like to go in?";

next;

if (select("Yes:No") == 2) close;

mes "Select a floor!";

set .@i, select("First","Second","Third","Fourth");

next;

mes "Good luck!";

close2;

warp "bossnia_0" .@i,rand(202,204),rand(202,204);

end;

OnHour0000:

OnHour0300:

OnHour0600:

OnHour0900:

OnHour1200:

OnHour1500:

OnHour1800:

OnHour2100:

set .BossOn, 1;

initnpctimer;

end;

OnTimer1800000:

set .BossOn, 0;

mapwarp "bossnia_01","prontera",151,151;

mapwarp "bossnia_02","prontera",151,151;

mapwarp "bossnia_03","prontera",151,151;

mapwarp "bossnia_04","prontera",151,151;

stopnpctimer;

end;

OnInit:

set .BossOn, 0;

end;

}

Edited by stydianx
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:  

............

Can you tell what is shown on map server?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

............

Can you tell what is shown on map server?

the NPC can now be seen, but cannot be clicked..

nope, there is no error in the server monitor..

Edited by stydianx
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:  

Because it wasn't activated yet, I didn't add GM panel coz I just simply wrote the script. Change the time on those "OnHourXXXX", when it activates you will able to talk to him.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

i was kinda hoping to keep the original script :) with the whole talking and stuff..

but only with the modifications i had in mind :)

Edited by stydianx
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:  

Somehow feels like AnnieRuru gonna come in and shoots at me :P

hahaha so true xD

in just one glance I can tell error in this line

warp "bossnia_0" .@i,rand(202,204),rand(202,204);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

Somehow feels like AnnieRuru gonna come in and shoots at me :P

hahaha so true xD

in just one glance I can tell error in this line

warp "bossnia_0" .@i,rand(202,204),rand(202,204);

hello annie, can you make this possible for me?

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:  

That was copied from his script, I also added a select menu to set @i for 1 to 4.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

That was copied from his script, I also added a select menu to set @i for 1 to 4.

can you also do this?

1. i want it to be open every 4hours (or 3 times a day)

2. it announces that the event will be open in 3min.

3. It only opens for 30min.

4. a minimum of 4 players in a party to enter, max is 10.

5. if one member of the party dies, they are all warped out.

6. Minimum base level to enter is 150.

7. A control panel for GM lvl 99.

8. PvP on. No @warp/@go

9. No usable items are allowed inside (example: YGG)

10. Those who can survive for 30min. recieves 3 TCG's.

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:  

I can tell you how to do, but I definitely won't make the whole script for you. No offense but many in rAthena is like, example: They want to do mobile app business but they never learn, and they request from other devs and sell it.

1. The time is given in the script above, change the OnHour like I said in previous post.

2. Put an announce ex: OnHour0257 is fine, or you can toggle another npctimer.

3. The script above already have timer with 1800000 (Which is equivalent to 1800 seconds).

4. Something like this:

set .@party_id,getcharid(1);
getpartymember(.@party_id,0);
if ((.@party_id == 0) || (.@partymembercount < 4) || (.@partymembercount > 10)) {
	mes "Less or more than 4!";
	close;
}

5. Something like this:

OnPCDieEvent:
if ((strcharinfo(3) == "bossnia_01") && (getcharid(1) != 0)) {
	set @id,getcharid(1);
	warpparty "prontera",150,100,@id;
}
end;

6. Something like this:

if (BaseLevel < 150) close;

7. Something with these commands:

if (getgmlevel >= 99) {
....
donpcevent "Bossnia Warper::OnEnable";
}

OnEnable:
set .BossOn, 1;
announce "Bossnia opened!",bc_all;
end;
}

8. bossnia_01 mapflag pvp

9. /db/re/item_noequip.txt then put a mapflag with following flag ID.

10. Just add a getitem command in OnTimer1800000 label.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

just done part of it..

http://pastebin.com/raw.php?i=btgzPSRM

Not yet completed :

create a loop process to check these before warp

  1. Dont have any items in Inventory
  2. All member are 150 Level...

and i dunno what you want to do with the GM Panel..

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:  

@darristan

no offense but, this is not the real way to improve your scripting skill

when I learned how to script 5 years ago, I'll perfect my script until the user satisfy

( hence this also explained why my PM box get bombarded ... )

but still, if you want to learn maximize your scripting ability, be at least more like emistry ...

he learned a lot from me in the last 2 years

I feel like I'm in partial script frenzy state,

and also I think this is a level2 event script - team vs team event, so I'm interested in taking this

team_lms0.1.txt

EDIT2:

no wonder I feel I miss something ... missing a nosave mapflag

guild_vs2    mapflag    nosave    SavePoint

WTF !!

emistry also doing this .. LMAO !

9. No usable items are allowed inside (example: YGG)
that should be done with db\pre-re\item_noequip.txt

EDIT: emistry seems to upload empty paste .. ?

Edited by AnnieRuru
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:  

Huh? I mean to let him learn, not me ._.

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:  

@darristan

now I'll say this to you as a moderator

this is a SCRIPT REQUEST section

a place where we - supporters - help other people making scripts

Script Requests

Need something written but haven't the slightest clue how to do it yourself? Ask here and someone might do it for you!

this area is a training ground for us to try out how to make scripts

not to tell them back to learn

if they want to learn, they will post in SUPPORT section

you see, Olrox who is a pro map designer, has an idea make RO has WoW battleground

he offering his map designing skill for us

and are you going to tell him back he should learn scripting and make a battleground script himself ?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

and are you going to tell him back he should learn scripting and make a battleground script himself ?

LOL

that should be done with db\pre-re\item_noequip.txt

erm..but i still prefer to disable player bring any item / disable to bring any healing / usable item into the map..

because...if disable all healing item...it would be alot of work to do in the trunk/db/re/item_noequip.txt

but..if the TS wanna disable only yggdrasilberry or few of them...then trunk/db/re/item_noequip.txt would be the best and easy choices...or edit the trunk/db/re/item_db.txt

and TS mentioned

9. No usable items are allowed inside (example: YGG)

so i think it would be better to check through the inventory ~ xD

EDIT: emistry seems to upload empty paste .. ?

hmm ?

http://pastebin.com/raw.php?i=btgzPSRM

the paste work fine for me.. O.O ??

any other face the same ? empty paste also ?

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:  

Well, I'm just suggesting him to learn and you are somewhat serious about it.

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:  

yes I'm serious darristan, we can give support in a Request section, but NOT about telling them to make themself

please differentiate the definition of Request section and Support section

this area is a training ground for us to exchange the ideas and improves our techniques how to make a better scripts

I admit, if this section doesn't exist, I wouldn't make over 1,000 e/rathena scripts to polished up the level I have now

@emistry

do we have *getcartlist script commands now ?

and there seems to be many ways for them to bring in items ( including usage of @storage )

other than *countitem and *getinventorylist - any other command to deny them ?

if not, maybe we can suggest to have a nohealitem mapflag ?

--> disable usage of item type 0 in a map defined with mapflags

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:  

but NOT about telling them to make themself

If you can see the script snippet I've written to him (Also the base script given in #2), there you should know I DID NOT just ask him to script himself WITHOUT helping. I did help him, in a different way and if you think that this kind of support method shouldn't be written in Request section then fine. I admit is my bad then.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@emistry

do we have *getcartlist script commands now ?

and there seems to be many ways for them to bring in items ( including usage of @storage )

other than *countitem and *getinventorylist - any other command to deny them ?

( i think it would be best to have *getcartlist / *getstoragelist ( too large to get the data store in 1 array ) command xD )

if not, maybe we can suggest to have a nohealitem mapflag ?

--> disable usage of item type 0 in a map defined with mapflags

Awww.....i have forgetten the cart ..and storage too

maybe can do a SQL command to return the items inside inventory ... and edit certain items script to check on map before can be use..

and as well as disable commands for @mail / @storage

for noitem / nostorage mapflag...i think someone made this before....brb..searching for it now...

Found...

NoItem Mapflag

NoStorage Mapflag

Edited by Emistry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

dont fight guys, each of you are right.. and you guys did the same thing which is you threehelped me :)

i learn scripting in a different way tho.. i observe them, and when i dont get it i ask..

somehow i learned basic scripting like message type and shop type NPC through observation and people helping me :)

yes I'm serious darristan, we can give support in a Request section, but NOT about telling them to make themself

please differentiate the definition of Request section and Support section

this area is a training ground for us to exchange the ideas and improves our techniques how to make a better scripts

I admit, if this section doesn't exist, I wouldn't make over 1,000 e/rathena scripts to polished up the level I have now

@emistry

do we have *getcartlist script commands now ?

and there seems to be many ways for them to bring in items ( including usage of @storage )

other than *countitem and *getinventorylist - any other command to deny them ?

if not, maybe we can suggest to have a nohealitem mapflag ?

--> disable usage of item type 0 in a map defined with mapflags

thanks allot, you didnt only help me with the script, but also with something else :)

@darristan, thanks for the help dude, i mean it.

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:  

if you think that this kind of support method shouldn't be written in Request section then fine. I admit is my bad then.
it seems I have offended you a little bit

but yes, this is correct

I actually saw you made some other scripts in request section like here and here

which you are doing fine

I also see you can be a potential script supporter if you try out to write more scripts in request section

after all, 5 years ago, I also start writing scripts like what you are doing now,

maybe in 5 years time you can write scripts on par with my level, who knows ?

I remember I told emistry last year that he also can become very good scripter

and I can tell he has level up a lot during my 1 year absence

I saw in his script release pages, he has made over 300 scripts,

.... well still not on par with me, but he did his best to make as many scripts as possible

after all, improving oneself scripting ability is not just by supporting others,

but to actually try out yourself and make a fully working script -> this is call learning a new language

and this is also how I master my scripting skills

@Emistry

I believe just noitem mapflag already enough

EDIT:

@stydianx

seems I post a little bit slow, but I know what I'm doing

if not, I wouldn't become scripting moderator for so many years ( since 2007 )

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@Emistry

I believe just noitem mapflag already enough

just in case if the server enabled this kind of items or @storage ( you mentioned )

Kafra Card

I remember I told emistry last year that he also can become very good scripter

and I can tell he has level up a lot during my 1 year absence

still got 3 ~ 4 years left before i can break annie record of 5 years... /gg

My Target !!! 4.9999 years... xP

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

well.. i hope im not far behind.. i also have my own script's you know! /ok /ok

take a look at this:

prt_in,121,81,5 shop Fuka's Feeds 880,504:120,911:120,7821:120,518:120,1002:120,716:120,532:120,711:120,929:120,511:120,6096:120,6095:120

prt_in,119,81,5 shop ibarra's Feeds 880,554:120,7824:120,7823:120,6115:120,6097:120,6108:120,6109:120,6110:120,6111:120,6112:120,6114:120,6113:120

prontera,164,171,4 shop StreetVendor 840,608:3000,607:7000,565:100,12350:2000,14542:1000,14544:1000

its a simple shop, built it from scratch tho.. /no1

but it sends out warnings like this:


[Warning]: npc_parse_shop: Item White_Potion [504] discounted buying price (120->90) is less than overcharged selling price (600->744) at file 'npc/custom/sample.txt', line '11'.
[Warning]: npc_parse_shop: Item Scell [911] discounted buying price (120->90) is less than overcharged selling price (80->99) at file 'npc/custom/sample.txt', line '11'.
[Warning]: npc_parse_shop: Item Honey [518] discounted buying price (120->90) is less than overcharged selling price (250->310) at file 'npc/custom/sample.txt', line '11'.
[Warning]: npc_parse_shop: Item Red_Gemstone [716] discounted buying price (120->90) is less than overcharged selling price (300->372) at file 'npc/custom/sample.txt', line '11'.
[Warning]: npc_parse_shop: Item Immortal_Heart [929] discounted buying price (120->90) is less than overcharged selling price (187->231) at file 'npc/custom/sample.txt', line '11'.
[Warning]: npc_parse_shop: Item Flavored_Alcohol [6095] discounted buying price (120->90) is less than overcharged selling price (500->620) at file 'npc/custom/sample.txt', line '11'.
[Warning]: npc_parse_shop: Item Mojji [554] discounted buying price (120->90) is less than overcharged selling price (200->248) at file 'npc/custom/sample.txt', line '12'.
[Warning]: npc_parse_shop: Item Bun_ [6115] discounted buying price (120->90) is less than overcharged selling price (500->620) at file 'npc/custom/sample.txt', line '12'.
[Warning]: npc_parse_shop: Item Apple_Pudding [6108] discounted buying price (120->90) is less than overcharged selling price (500->620) at file 'npc/custom/sample.txt', line '12'.
[Warning]: npc_parse_shop: Item Vital_Flower [6110] discounted buying price (120->90) is less than overcharged selling price (500->620) at file 'npc/custom/sample.txt', line '12'.
[Warning]: npc_parse_shop: Item Mystic_Stone [6111] discounted buying price (120->90) is less than overcharged selling price (500->620) at file 'npc/custom/sample.txt', line '12'.
[Warning]: npc_parse_shop: Item Fresh_Plant [6112] discounted buying price (120->90) is less than overcharged selling price (500->620) at file 'npc/custom/sample.txt', line '12'.
[Warning]: npc_parse_shop: Item Flame_Gemstone [6114] discounted buying price (120->90) is less than overcharged selling price (500->620) at file 'npc/custom/sample.txt', line '12'.
[Warning]: npc_parse_shop: Item Vital_Flower_ [6113] discounted buying price (120->90) is less than overcharged selling price (500->620) at file 'npc/custom/sample.txt', line '12'.
[Warning]: npc_parse_shop: Item Seed_Of_Yggdrasil [608] discounted buying price (3000->2250) is less than overcharged selling price (2500->3100) at file 'npc/custom/sample.txt', line '14'.
[Warning]: npc_parse_shop: Item Vita500_Bottle [565] discounted buying price (100->75) is less than overcharged selling price (290->359) at file 'npc/custom/sample.txt', line '14'.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@stydianx

well...now you dont need to write the script yourself....use Shopper tool to generate shop scripts xD

https://rathena.org/board/index.php?/files/file/2597-shoper/

and about your warning....just set the item price to higher than it's default selling price...

and...this ..out of the topic already ~

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...