Jump to content
  • 0
Unless boy

Show sale with balloon(shop) in npc

Question

 

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

q.png

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
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 1
  • Like 1

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

 

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

Share this post


Link to post
Share on other sites
  • 0
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 ^^

Share this post


Link to post
Share on other sites
  • 0
On 12/5/2019 at 6:59 PM, ittiphol said:

It's works fine 

Thank you ^^

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

No search

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.