Jump to content

Specialty Shops


Stolao

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

I wold like to suggest 2 new shop types (similar to cashshop)

 

1st being itemshop

Example:

<map name>,<x>,<y>,<facing>	itemshop	<NPC Name>	<sprite id>,<costitem>,<itemid>:<price>{,<itemid>:<price>...}

this would work just like a shop but would of course check for item defined in script

 

 

 

2nd would be more of a replacement to cashshop

Example:

 

<map name>,<x>,<y>,<facing>    pointshop    <NPC Name>    <sprite id>,<"points">,<itemid>:<price>{,<itemid>:<price>...}
 

 

this could use any player or account bound point types such as #CashPoints or PvpPoints, as defined in script

 

 

 

Now i know how to add these without any source changes I've done it a thousand times, I'm suggesting we eliminate alot of the complexity of those script types.

 

Thoughts?

 

 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  247
  • Reputation:   207
  • Joined:  10/23/12
  • Last Seen:  

I agree with this.  I would also think not only does this make it extremely easy to make a item/point shop, but also decrease processing time as you wouldn't need to go through script engine like you have to now.  +1 from me.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  197
  • Reputation:   13
  • Joined:  05/14/12
  • Last Seen:  

+1 for this, yah its a nice sir ^_^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

+1!!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

It's not *that* hard to write scripts for this... /hides

 

But on a serious note, I support this too.

References:

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

It's not *that* hard to write scripts for this... /hides

 

Not at all, XD

Link to comment
Share on other sites


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

I support this as well.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

Orcao's nor Xantara's setcashpoints is not working as of now in the new revision because of the change in "clif_parse_cashshop_buy"..... Hope it will be have a fix soon. Thanks.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   4
  • Joined:  09/08/12
  • Last Seen:  

>_< i want this!!
anyone working on this?

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   4
  • Joined:  09/08/12
  • Last Seen:  

nothing yet?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  247
  • Reputation:   207
  • Joined:  10/23/12
  • Last Seen:  

This modification is in the final stages actually.  We were just working on this today and hopefully a release will be done within the week.

  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Oh yay <3

Can't wait for it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  247
  • Reputation:   207
  • Joined:  10/23/12
  • Last Seen:  

Sorry for the delay on this.  I've had some motivational problems after releasing that statement and I won't be around until likely later next week.  That's not to say someone else can't pick it up.  Attached the current diff (not sure if it's up to date to GIT).  Feel free to check it out.  This is courtesy of Aleos by the way.

 

 

newshops.diff

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Sorry for the delay on this.  I've had some motivational problems after releasing that statement and I won't be around until likely later next week.  That's not to say someone else can't pick it up.  Attached the current diff (not sure if it's up to date to GIT).  Feel free to check it out.  This is courtesy of Aleos by the way.

only if ur diff is up-to-date with latest rev, it would be nice

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

i tried to apply this but i got compile warnings,

 

1>d:\ragnarok server\rathena\src\map\npc.c(1224): error C2143: syntax error : missing ';' before 'type'
1>d:\ragnarok server\rathena\src\map\npc.c(1226): error C2065: 'i_data' : undeclared identifier
1>  pc.c
1>d:\ragnarok server\rathena\src\map\npc.c(1226): error C2223: left of '->jname' must point to struct/union
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

 

i tried to apply this but i got compile warnings,

 

1>d:\ragnarok server\rathena\src\map\npc.c(1224): error C2143: syntax error : missing ';' before 'type'
1>d:\ragnarok server\rathena\src\map\npc.c(1226): error C2065: 'i_data' : undeclared identifier
1>  pc.c
1>d:\ragnarok server\rathena\src\map\npc.c(1226): error C2223: left of '->jname' must point to struct/union

 

 

I also encountered this error.. any help would be appreciated.. thank you.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

I have no idea until try it. /heh

 

--- EDIT

ok tested, npc.c, change the line 1223 until 1229 to

case ITEMSHOP:
{
struct item_data *i_data = itemdb_exists(nd->u.shop.itemshop_nameid);
 
sprintf(output, msg_txt(sd,387), i_data->jname);
clif_broadcast(&sd->bl, output, strlen(output) + 1, 0x10, SELF);
clif_npcbuysell(sd,nd->bl.id);
} break;

just need curly.

 

hmm, the msg number, it's something


**OK, bump!**

 

Thank guys for attention and ur patience. Now, the shops are here 32fd3ee

(thank @Aleos & @Akinari too)

 

Here, my ugly test

The NPC file

prontera,155,158,4 itemshop ItemShop-Test1 123,501,1201:3,1202:5
prontera,155,160,4 itemshop ItemShop-Test2 123,502,2201:3,2202:5
prontera,155,162,4 pointshop PointShop-Test1 123,points,501:1,502:2
prontera,155,164,4 pointshop PointShop-Test2 123,#vippoints,678:5,607:5,608:3
prontera,155,166,4 pointshop PointShop-Test3 123,#votepoints,678:5,607:5,608:3

And the ugly results see attachments /heh

post-5421-0-28515100-1385833132_thumb.jpg

post-5421-0-95124600-1385833148_thumb.jpg

post-5421-0-23113900-1385833164_thumb.jpg

post-5421-0-97286700-1385833177_thumb.jpg

post-5421-0-77902700-1385833194_thumb.jpg

post-5421-0-39276100-1385833212_thumb.jpg

post-5421-0-47910300-1385833225_thumb.jpg

post-5421-0-54638800-1385833240_thumb.jpg

post-5421-0-38075400-1385833258_thumb.jpg

post-5421-0-66795100-1385833276_thumb.jpg

Link to comment
Share on other sites

×
×
  • Create New...