Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Problem with //loadhtml (https://postpacific.loc-online.com/showthread.php?t=7373)

Banshee 17.04.2007 13:39

Problem with //loadhtml
 
Hi everybody,

I am trying to use the command //loadhtml to be able to have several summons of the same NPC with a different dialog for every summon.
The syntax I have tried is:

//loadhtml text_npc.htm

(text_npc.htm is in lowercase and the NPC is previously selected)

However, this command seems not to do anything. I suppose the syntax is not correct or maybe the command is not working, I don´t know.
Can anyone of you give any clue on this?

Any help will be really appreciated.

Thanks in advance,

Banshee

m4rk 17.04.2007 14:37

you don't need to select the NPC.
I'm not 100% sure it's loadhtml but I've already used it so it's working.

Maybe if the html's weren't cached by the server they won't display.

GMan 18.04.2007 00:21

Loadhtml is just to show you what teh html is, it wont give an npc that html to us as a hello.

Banshee 19.04.2007 11:00

Ok, thanks for the answers, it seems I was expecting another behavior from loadhtml.

So I will reask my question:

"Is there any GM command that allows to change the html associated to an NPC, so I can have several summons of the same NPC associated with different html files?"

Thanks a lot again^^ !!

tpuNIsher 19.04.2007 11:07

There's none that you ask for. Unless you have several ais made for the same npc and use setai or sumn..

top-gear 20.04.2007 00:56

is there a way to reload htmls without server restarting?

erra 20.04.2007 11:27

I think, there is not. You can turn off HTML caching for a moment and test your new HTML file, but into the cache it will be realoaded only when restarted.

mcrabben7 20.04.2007 12:05

Cache updates all the time. I've replaced HTMLs with caching on and the changes made it to the server just fine.

m4rk 20.04.2007 12:10

You just have to turn off html caching and the changes will be reflected on real time.


All times are GMT. The time now is 15:58.