Jump to content
  • 0

Show sale with balloon(shop) in npc


Unless boy

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/19/17
  • Last Seen:  

 

Hi, I would like to know how I can put the sales balloon on top of npc, just like this

q.png

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   82
  • Joined:  11/15/11
  • Last Seen:  

8 hours ago, Cyro said:

try this


prontera,150,150,4	script	Shop	861,{

OnVendingClick:

callshop( "rathena", 1 );
end;

OnInit:
showvend( "Shop", 1, "rAthena" );
end;
}

-	shop	rathena	-1,512:-1

 

ShowVend.zip

Errors fixed while compiling:

Script.cpp

clif_showvendingboard( &nd->bl, buf, 0 );

Change to:

clif_showvendingboard( &nd->bl, (const char*)buf, 0 );

Vendings.cpp

	if( nd_sd->subtype == CASHSHOP ) //Act as if it was clicked
		npc_click( sd, nd_sd );
	if( nd_sd->subtype == SHOP ) //Open Buy-Windows directly
		npc_buysellsel( sd, nd_sd->bl.id, 0 );
	if( nd_sd->subtype == SCRIPT ) { //Trigger OnVendingClick event

Change to:

	if( nd_sd->subtype == NPCTYPE_CASHSHOP ) //Act as if it was clicked
		npc_click( sd, nd_sd );
	if( nd_sd->subtype == NPCTYPE_SHOP ) //Open Buy-Windows directly
		npc_buysellsel( sd, nd_sd->bl.id, 0 );
	if( nd_sd->subtype == NPCTYPE_SCRIPT ) { //Trigger OnVendingClick event

 

Edited by Popcorn
  • Upvote 1
  • MVP 2
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

Wrong section. Moved to "Source Support".

 

try this

prontera,150,150,4	script	Shop	861,{

OnVendingClick:

callshop( "rathena", 1 );
end;

OnInit:
showvend( "Shop", 1, "rAthena" );
end;
}

-	shop	rathena	-1,512:-1

 

ShowVend.zip

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/19/17
  • Last Seen:  

 

I downloaded tortoiseSVN, but I do not know how to use ? ,  

---------------Detectar idiomaAfricânerAlbanêsAlemãoAmáricoÁrabeArmênioAzerbaijanoBascoBengaliBielorrussoBirmanêsBósnioBúlgaroCanarimCatalãoCazaqueCebuanoChinês (simplificado)Chinês (tradicional)CingalêsCoreanoCorsoCroataCurdoDinamarquêsEslovacoEslovenoEspanholEsperantoEstonianoFilipinoFinlandêsFrancêsFrísio ocidentalGaélico escocêsGalegoGalêsGeorgianoGregoGuzerateHaitianoHauçáHavaianoHebraicoHíndiHmongHolandêsHúngaroIgboIídicheIndonésioInglêsIorubáIrlandêsIslandêsItalianoJaponêsJavanêsKhmerLaosianoLatimLetãoLituanoLuxemburguêsMacedônioMalaialaMalaioMalgaxeMaltêsMaoriMaratiMongolNepalêsNianjaNorueguêsPanjabiPashtoPersaPolonêsPortuguêsQuirguizRomenoRussoSamoanoSérvioSindiSomaliSoto do sulSuaíliSuecoSundanêsTadjiqueTailandêsTâmilTchecoTélugoTurcoUcranianoUrduUzbequeVietnamitaXhosaXonaZuluPortuguês
 
 
I can do it manually? , in the current rathena the files are in .hpp and .cpp, can I change the showvend to this?

12.png

 

its not working .-.

resolved, can close this topic

Edited by Unless boy
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

On 3/13/2018 at 8:17 AM, Haikenz said:

Errors fixed while compiling:

Script.cpp


clif_showvendingboard( &nd->bl, buf, 0 );

Change to:


clif_showvendingboard( &nd->bl, (const char*)buf, 0 );

Vendings.cpp


	if( nd_sd->subtype == CASHSHOP ) //Act as if it was clicked
		npc_click( sd, nd_sd );
	if( nd_sd->subtype == SHOP ) //Open Buy-Windows directly
		npc_buysellsel( sd, nd_sd->bl.id, 0 );
	if( nd_sd->subtype == SCRIPT ) { //Trigger OnVendingClick event

Change to:


	if( nd_sd->subtype == NPCTYPE_CASHSHOP ) //Act as if it was clicked
		npc_click( sd, nd_sd );
	if( nd_sd->subtype == NPCTYPE_SHOP ) //Open Buy-Windows directly
		npc_buysellsel( sd, nd_sd->bl.id, 0 );
	if( nd_sd->subtype == NPCTYPE_SCRIPT ) { //Trigger OnVendingClick event

 

It's works fine 

Thank you ^^

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   2
  • Joined:  02/15/13
  • Last Seen:  

On 12/5/2019 at 6:59 PM, ittiphol said:

It's works fine 

Thank you ^^

clif_showvendingboard( &nd->bl, buf, 0 );

No search

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

If you vending by Job class you can't open shop it's notthing happen

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